Index: third_party/WebKit/LayoutTests/inspector/sources/debugger/debugger-es6-harmony-scopes.html |
diff --git a/third_party/WebKit/LayoutTests/inspector/sources/debugger/debugger-es6-harmony-scopes.html b/third_party/WebKit/LayoutTests/inspector/sources/debugger/debugger-es6-harmony-scopes.html |
index 30caa01a59cc139a045171d8eaa4a1f678502463..8582e4ee7158510687cccfc5125e8dc423d88e71 100644 |
--- a/third_party/WebKit/LayoutTests/inspector/sources/debugger/debugger-es6-harmony-scopes.html |
+++ b/third_party/WebKit/LayoutTests/inspector/sources/debugger/debugger-es6-harmony-scopes.html |
@@ -2,13 +2,13 @@ |
<head> |
<script src="../../../http/tests/inspector/inspector-test.js"></script> |
<script src="../../../http/tests/inspector/debugger-test.js"></script> |
-<script> |
+<script type="module"> |
"use strict"; |
let globalLet = 41; |
const globalConst = 42; |
-function makeClosure(n) |
+window.makeClosure = function(n) |
{ |
let makeClosureBlockVar = "block." + n; |
var makeClosureLocalVar = "local." + n; |
@@ -38,13 +38,18 @@ function makeClosure(n) |
} |
} |
} |
+</script> |
+<script> |
+let globalScriptLet = 41; |
+const globalScriptConst = 42; |
function testFunction() |
{ |
var f = makeClosure("TextParam"); |
f(2014); |
} |
- |
+</script> |
+<script> |
function test() |
{ |
InspectorTest.startDebuggerTest(onTestStarted); |