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); }
|
||||
}
|
||||
|
||||
this.exports = {
|
||||
module.exports = {
|
||||
setupObjectHooks: setupObjectHooks,
|
||||
exerciseDocumentRegister: exerciseDocumentRegister,
|
||||
register: register,
|
||||
|
@ -1,7 +1,7 @@
|
||||
<link rel="import" href="../../resources/dump-as-text.sky" />
|
||||
<link rel="import" href="pass.sky" as="banana" />
|
||||
<script>
|
||||
this.exports = {
|
||||
module.exports = {
|
||||
message: banana,
|
||||
};
|
||||
</script>
|
||||
|
@ -1,3 +1,3 @@
|
||||
<script>
|
||||
this.exports = "PASS: pass.sky succesfully exported this string."
|
||||
module.exports = "PASS: pass.sky succesfully exported this string."
|
||||
</script>
|
||||
|
Loading…
x
Reference in New Issue
Block a user