Fix _.isFinite unit test in Node and remove isStrictFast use.

Former-commit-id: e2e04f4cee0a52f4461c8ee84c157c1ea0e4c132
This commit is contained in:
John-David Dalton
2012-10-20 16:19:39 -07:00
parent 400b6fbb61
commit 453755bfa1
5 changed files with 60 additions and 61 deletions

View File

@@ -787,7 +787,7 @@
// remove `isStrictFast` assignment
return removeVar(source, 'isStrictFast')
// replace `useStrict` branch in `value` with hard-coded option
.replace(/(?: *\/\/.*\n)*(\s*)' *<% *if *\(useStrict\).+/, value ? "$1'\\'use strict\\';\\n' +" : '')
.replace(/(?: *\/\/.*\n)*(\s*)' *<%.+?useStrict.+/, value ? "$1'\\'use strict\\';\\n' +" : '')
// remove `useStrict` from iterator options
.replace(/(?:,\s*'useStrict':[^,]+?\n| *'useStrict':[^,]+,\n)/g, '');
}