Don't crash when importing a module that doesn't export
Instead of crashing, we should use the value "undefined". There's some question as to whether we should default to the document, but we can resolve that later. R=eseidel@chromium.org Review URL: https://codereview.chromium.org/690483002
This commit is contained in:
parent
28626cf782
commit
4c5a9b1775
@ -0,0 +1 @@
|
||||
PASS
|
@ -0,0 +1,9 @@
|
||||
<html>
|
||||
<link rel="import" href="resources/does-not-export.sky" as="hello" />
|
||||
<link rel="import" href="../resources/dump-as-text.sky" />
|
||||
<div id="result">FAIL - Script did not execute</div>
|
||||
<script>
|
||||
document.getElementById("result").textContent =
|
||||
hello === undefined ? "PASS" : "FAIL";
|
||||
</script>
|
||||
</html>
|
@ -0,0 +1 @@
|
||||
This module has no exports.
|
Loading…
x
Reference in New Issue
Block a user