mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Per the spec in modules.md the exports property should default to an empty object. We lazy allocate it so that modules that just replace it don't create the empty object and then throw it away. R=abarth@chromium.org Review URL: https://codereview.chromium.org/872043003
12 lines
354 B
Plaintext
12 lines
354 B
Plaintext
<html>
|
|
<import src="resources/does-not-export.sky" as="hello" />
|
|
<import src="../resources/dump-as-text.sky" />
|
|
<div id="result">FAIL - Script did not execute</div>
|
|
<script>
|
|
var result = "FAIL";
|
|
if (typeof hello === "object" && Object.keys(hello).length === 0)
|
|
result = "PASS";
|
|
document.getElementById("result").textContent = result;
|
|
</script>
|
|
</html>
|