@@ -25,6 +25,7 @@ import * as debugapi from '../src/agent/v8/debugapi';
2525import consoleLogLevel = require( 'console-log-level' ) ;
2626import * as stackdriver from '../src/types/stackdriver' ;
2727import { Variable } from '../src/types/stackdriver' ;
28+ import { satisfies } from '../src/agent/util/utils' ;
2829
2930const code = require ( './test-circular-code.js' ) ;
3031
@@ -42,7 +43,19 @@ function stateIsClean(api: debugapi.DebugApi): boolean {
4243 return true ;
4344}
4445
45- describe ( __filename , ( ) => {
46+ /**
47+ * Stable object ID was reverted in V8 7.3 (Node 12), so circular objects will
48+ * not work in the near future. For now, we warn if the user specifies
49+ * maxDataSize = 0, as this will cause the app to crash.
50+ */
51+ const maybeDescribe = satisfies (
52+ process . version ,
53+ '>=10 <10.15.3 || >=11 <11.7 || >=12'
54+ )
55+ ? describe . skip
56+ : describe ;
57+
58+ maybeDescribe ( __filename , ( ) => {
4659 const config = Object . assign ( { } , defaultConfig , {
4760 workingDirectory : __dirname ,
4861 forceNewAgent_ : true ,
@@ -76,8 +89,6 @@ describe(__filename, () => {
7689 afterEach ( ( ) => {
7790 assert ( stateIsClean ( api ) ) ;
7891 } ) ;
79- // TODO(kjin): Re-enable this test after issue #742 has been addressed
80- /*
8192 it ( 'Should be able to read the argument and the context' , done => {
8293 // TODO: Have this actually implement Breakpoint
8394 const brk : stackdriver . Breakpoint = {
@@ -142,5 +153,4 @@ describe(__filename, () => {
142153 process . nextTick ( code . foo . bind ( { } ) ) ;
143154 } ) ;
144155 } ) ;
145- */
146156} ) ;
0 commit comments