Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iced coffee script place 'use strict' in wrong place #23

Closed
yyfearth opened this issue Feb 25, 2012 · 1 comment
Closed

iced coffee script place 'use strict' in wrong place #23

yyfearth opened this issue Feb 25, 2012 · 1 comment

Comments

@yyfearth
Copy link

in iced-coffee-script,

"use strict"
a =
 a: 1
 'a': 2

will be compiled into:

var a;

"use strict";

a = {
  a: 1,
  'a': 2
};

that the "use strict"; should before any statement but it not.

while coffee-script will compile into:

"use strict";
var a;

a = {
  a: 1,
  'a': 2
};

which is correct.

@maxtaco
Copy link
Owner

maxtaco commented Feb 27, 2012

Working on it... It still doesn't work after a rebase, so there's a conflict with the hoistDirectives and the IcedRuntime that are fighting over who gets to be first.

maxtaco added a commit that referenced this issue Mar 27, 2012
maxtaco added a commit that referenced this issue Apr 11, 2012
maxtaco added a commit that referenced this issue Apr 11, 2012
Conflicts:

	lib/coffee-script/browser.js
	lib/coffee-script/cake.js
	lib/coffee-script/coffee-script.js
	lib/coffee-script/command.js
	lib/coffee-script/grammar.js
	lib/coffee-script/helpers.js
	lib/coffee-script/iced.js
	lib/coffee-script/icedlib.js
	lib/coffee-script/index.js
	lib/coffee-script/lexer.js
	lib/coffee-script/nodes.js
	lib/coffee-script/optparse.js
	lib/coffee-script/repl.js
	lib/coffee-script/rewriter.js
	lib/coffee-script/scope.js
maxtaco added a commit that referenced this issue May 10, 2012
maxtaco added a commit that referenced this issue May 30, 2012
maxtaco added a commit that referenced this issue Sep 19, 2012
maxtaco added a commit that referenced this issue Sep 19, 2012
maxtaco added a commit that referenced this issue Dec 5, 2012
maxtaco added a commit that referenced this issue Dec 5, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants