Use module.exports rather than this.exports
R=esprehn@chromium.org Review URL: https://codereview.chromium.org/687263005
This commit is contained in:
parent
aa58f474f5
commit
681ec14ced
@ -52,7 +52,7 @@ function register(name, options)
|
|||||||
} catch (e) { console.log(e); }
|
} catch (e) { console.log(e); }
|
||||||
}
|
}
|
||||||
|
|
||||||
this.exports = {
|
module.exports = {
|
||||||
setupObjectHooks: setupObjectHooks,
|
setupObjectHooks: setupObjectHooks,
|
||||||
exerciseDocumentRegister: exerciseDocumentRegister,
|
exerciseDocumentRegister: exerciseDocumentRegister,
|
||||||
register: register,
|
register: register,
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<link rel="import" href="../../resources/dump-as-text.sky" />
|
<link rel="import" href="../../resources/dump-as-text.sky" />
|
||||||
<link rel="import" href="pass.sky" as="banana" />
|
<link rel="import" href="pass.sky" as="banana" />
|
||||||
<script>
|
<script>
|
||||||
this.exports = {
|
module.exports = {
|
||||||
message: banana,
|
message: banana,
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
<script>
|
<script>
|
||||||
this.exports = "PASS: pass.sky succesfully exported this string."
|
module.exports = "PASS: pass.sky succesfully exported this string."
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user