Move exports from Document to Module
This CL moves the |exports| from Document to the new |Module| interface, matching the spec. Also, the |module| object available to scripts is now really an instance of |Module|. R=eseidel@chromium.org Review URL: https://codereview.chromium.org/703593003
This commit is contained in:
parent
04122dbd21
commit
f860dc6a44
@ -0,0 +1 @@
|
||||
PASS
|
@ -0,0 +1,8 @@
|
||||
<html>
|
||||
<import src="../resources/dump-as-text.sky" />
|
||||
<div id="result">FAIL</div>
|
||||
<script>
|
||||
document.getElementById("result").textContent =
|
||||
module instanceof Application ? 'PASS': 'FAIL: ' + module;
|
||||
</script>
|
||||
</html>
|
@ -0,0 +1 @@
|
||||
PASS
|
8
engine/src/flutter/tests/modules/instance-of-module.sky
Normal file
8
engine/src/flutter/tests/modules/instance-of-module.sky
Normal file
@ -0,0 +1,8 @@
|
||||
<html>
|
||||
<import src="../resources/dump-as-text.sky" />
|
||||
<import src="resources/instance-of-module-module.sky" as="result" />
|
||||
<div id="result">FAIL</div>
|
||||
<script>
|
||||
document.getElementById("result").textContent = result;
|
||||
</script>
|
||||
</html>
|
@ -0,0 +1,3 @@
|
||||
<script>
|
||||
module.exports = module instanceof Module ? 'PASS' : 'FAIL: ' + module;
|
||||
</script>
|
Loading…
x
Reference in New Issue
Block a user