@@ -9,7 +9,7 @@ const tmpdir = require('../../common/tmpdir');
99const binding = path . resolve ( __dirname , `./build/${ common . buildType } /binding` ) ;
1010const addon = require ( binding ) ;
1111
12- function myAddonMain ( method , { hasIsolate , hasEnv } ) {
12+ function myAddonMain ( method , { hasContext , hasEnv } ) {
1313 tmpdir . refresh ( ) ;
1414 process . report . directory = tmpdir . path ;
1515
@@ -27,7 +27,7 @@ function myAddonMain(method, { hasIsolate, hasEnv }) {
2727 const content = require ( report ) ;
2828
2929 // Check that the javascript stack is present.
30- if ( hasIsolate ) {
30+ if ( hasContext ) {
3131 assert . strictEqual ( content . javascriptStack . stack . findIndex ( ( frame ) => frame . match ( 'myAddonMain' ) ) , 0 ) ;
3232 } else {
3333 assert . strictEqual ( content . javascriptStack , undefined ) ;
@@ -45,9 +45,9 @@ const methods = [
4545 [ 'triggerReportNoIsolate' , false , false ] ,
4646 [ 'triggerReportEnv' , true , true ] ,
4747 [ 'triggerReportNoEnv' , false , false ] ,
48- [ 'triggerReportNoContext' , true , false ] ,
48+ [ 'triggerReportNoContext' , false , false ] ,
4949 [ 'triggerReportNewContext' , true , false ] ,
5050] ;
51- for ( const [ method , hasIsolate , hasEnv ] of methods ) {
52- myAddonMain ( method , { hasIsolate , hasEnv } ) ;
51+ for ( const [ method , hasContext , hasEnv ] of methods ) {
52+ myAddonMain ( method , { hasContext , hasEnv } ) ;
5353}
0 commit comments