mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
@export is now an error in test slices.
This is preparation for ensuring that any slice with exports has at least
"Package.foo = {}"; without this commit, both the use and test slice would (with
that change) try to overwrite Package.foo.
Remove the attempt to allow @export in 'use strict' CoffeeScript files:
ECMAScript 'use strict' is fundamentally incompatible with our implementation of
exports, and it was probably a bug that this used to work at all.
13 lines
261 B
CoffeeScript
13 lines
261 B
CoffeeScript
'use strict'
|
|
|
|
# Another variable, which will stay in the var line.
|
|
x = 5
|
|
|
|
# This adds a utility function to the var line.
|
|
y = []
|
|
x in y
|
|
|
|
Tinytest.add "coffeescript - shared", (test) ->
|
|
test.equal share.coffeeShared, 789
|
|
test.equal sharedFromJavascript, 135
|