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

Already on GitHub? Sign in to your account

Patch for Bug 784358 ("Defining const variable within eval() throws redeclaration error") #83

Merged
merged 1 commit into from Aug 27, 2012

Conversation

Projects
None yet
2 participants
Contributor

anba commented Aug 21, 2012

initScript() only needs to special case the 'var' case for eval'ed code. Also throw a catchable TypeError when redeclaring a constant instead of calling Context.reportRuntimeError1().

@anba anba Patch for Bug 784358 ("Defining const variable within eval() throws r…
…edeclaration error")

initScript() only needs to special case the 'var' case for eval'ed code. Also throw a catchable TypeError when redeclaring a constant instead of calling Context.reportRuntimeError1().
3b36c86

@hns hns added a commit that referenced this pull request Aug 27, 2012

@hns hns Merge pull request #83 from anba/bug-784358
Patch for Bug 784358 ("Defining const variable within eval() throws redeclaration error")
49648dc

@hns hns merged commit 49648dc into mozilla:master Aug 27, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment