diff options
Diffstat (limited to 'deps/v8/test/debugger/debug/es6/debug-liveedit-new-target-3.js')
-rw-r--r-- | deps/v8/test/debugger/debug/es6/debug-liveedit-new-target-3.js | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/deps/v8/test/debugger/debug/es6/debug-liveedit-new-target-3.js b/deps/v8/test/debugger/debug/es6/debug-liveedit-new-target-3.js index 60ec9a7fa1..c60729016a 100644 --- a/deps/v8/test/debugger/debug/es6/debug-liveedit-new-target-3.js +++ b/deps/v8/test/debugger/debug/es6/debug-liveedit-new-target-3.js @@ -2,10 +2,10 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. - // Test that live-editing a frame above one that uses new.target succeeds. +// Flags: --allow-natives-syntax -Debug = debug.Debug +Debug = debug.Debug; var wrapper_calls = 0; var construct_calls = 0; var exceptions = 0; @@ -47,10 +47,7 @@ function Replace(fun, original, patch) { ExecuteInDebugContext(function() { var change_log = []; try { - var script = Debug.findScript(fun); - var patch_pos = script.source.indexOf(original); - Debug.LiveEdit.TestApi.ApplySingleChunkPatch( - script, patch_pos, original.length, patch, change_log); + %LiveEditPatchScript(fun, Debug.scriptSource(fun).replace(original, patch)); } catch (e) { exceptions++; } |