Marc Häfner
caafafcf4d
Simplify removeSource and make it synchronous
2013-11-23 06:49:13 +01:00
Marc Häfner
81d8224b9a
Remove path.exists* as fallback for fs.exists*
2013-11-23 06:42:39 +01:00
Marc Häfner
22c85e216f
Use absolute paths in CLI
...
* Use absolute paths for source files and target paths
* Memorize and explicitly check for watched directories
* Make path comparison and construction more precise and clear
* Remove now unnecessary check for special relative paths
2013-11-23 06:41:08 +01:00
xixixao
130899a39f
Fix multiple escaped backslashes in literal strings
2013-11-19 23:44:39 +00:00
Jeremy Ashkenas
6847400ccb
Merge pull request #3246 from xixixao/issue3229
...
Implements #3229 - Changed multiline string literals
2013-11-18 16:42:10 -08:00
xixixao
1102567b0c
Handle escaped backslashes
2013-11-19 00:04:17 +00:00
xixixao
073d025fac
Better method name and fixed regexps for IE
2013-11-18 15:13:40 +00:00
xixixao
efe8c68c75
Changed multiline string literals
2013-11-18 04:32:15 +00:00
Andreas Lubbe
9941050120
using 'yield' automatically turns functions into generators
2013-11-15 22:19:31 +01:00
Andreas Lubbe
dafc7bdea5
added 'yield' to the unary keywords
2013-11-15 22:16:28 +01:00
Andreas Lubbe
f51cbd7117
removed 'yield' from the reserved keywords
2013-11-15 22:15:31 +01:00
Jeremy Ashkenas
fcc88ca472
Revert "add: Stat polling support while fs.watch doesn't work."
...
This reverts commit 2853e718f2 .
2013-11-15 14:26:16 -05:00
Jeremy Ashkenas
187ebd0374
Revert "mov: Change the option name --polling to --watch-polling, and only leaves the long option name."
...
This reverts commit 08f6c65c3b .
2013-11-15 14:26:05 -05:00
Jeremy Ashkenas
c4999efda7
Revert "fix: opts.polling changed to opts[watch-polling]"
...
This reverts commit 52789f5b19 .
2013-11-15 14:25:55 -05:00
Jeremy Ashkenas
b6231e50c3
Merge pull request #3212 from ysmood/issue3210
...
add: Stat polling support while `fs.watch` doesn't work.
2013-11-15 11:09:50 -08:00
Marc Häfner
592aa33577
Fixes #2367 -- super in for-loop
2013-11-15 06:35:04 +01:00
Marc Häfner
544c99a9ad
Fix error location for illegal pure statements
2013-11-15 05:37:34 +01:00
Marc Häfner
aea0f2533b
Fixes #3232 -- Tag all class properties static
...
(and remove duplicate `context` assigment)
2013-11-15 03:44:26 +01:00
Marc Häfner
138c25fe5f
Cleanup and extend METHOD_DEF
...
* Fixes #2949 : Detect reserved names (not only for instance methods)
* Don't assign names which might result in incorrect `super` calls
2013-11-12 16:53:09 +01:00
Marc Häfner
96ae98fade
Fixes #3087 -- Use fs.*Sync for CLI compilation
...
* Make `compilePath` synchronous
* Remove unused variable
2013-11-10 08:36:29 +01:00
xixixao
0dada3dd27
Remove unnecessary type conversions to Number
2013-11-10 00:13:52 +00:00
xixixao
849c8e8ef4
Remove unnecessary existential check
2013-11-10 00:13:14 +00:00
Marc Häfner
d41d87a874
Avoid unnecessary wrapping of some bound functions
2013-11-03 03:14:13 +01:00
Marc Häfner
5d13d14de9
Closes #3008 -- Fix scope of constructor reference
...
* Make scope of `Code` nodes accessible (prior to `compileNode`)
* Use correct scope for reference of external constructor.
* Remove unreachable code.
2013-11-01 01:13:10 +01:00
Marc Häfner
1df8abf1cb
Refactor closure compilation
...
* Break up `Closure` and merge `Closure.wrap` into `Base.compileClosure`
* Construct class closure directly in `Class.compileNode`
* Reuse `isLiteralArguments` in `Range.compileArray`
* Move all helpers to bottom of file
* Add test for #3063
2013-10-31 23:25:11 +01:00
Marc Häfner
091bc56a96
Code cleanup in Class
...
* Don't insert unnecessary `_ref` (in the wrong scope)
* Improve code prettiness. (Reverts most of 903e9c99 )
2013-10-29 00:01:20 +01:00
Yad Smood
52789f5b19
fix: opts.polling changed to opts[watch-polling]
2013-10-27 01:04:03 +08:00
Marc Häfner
9ba1d41ec8
Fix: __extends helper above directive prologue
2013-10-26 06:54:54 +02:00
Marc Häfner
0d662c3ad2
Missing parentheses
2013-10-24 00:43:29 +02:00
Marc Häfner
fa76e2dd21
Escapable linebreaks in heregexes
2013-10-24 00:36:46 +02:00
Yad Smood
08f6c65c3b
mov: Change the option name --polling to --watch-polling, and only leaves the long option name.
...
opt: Optimize the comment of the `--watch-polling` option.
2013-10-23 00:52:40 +08:00
Marc Häfner
91ac3fa031
Escaped whitespace and slashes in Heregexes
...
* Resolves #3059 : Don't remove escaped whitespace.
* Fixes #2238 : Prevent escaping slashes that are already escaped.
* Fix detection of end of heregex with escaped slashes.
2013-10-22 18:08:17 +02:00
Yad Smood
2853e718f2
add: Stat polling support while fs.watch doesn't work.
...
Add a new cli option: -g --polling [SPAN]
If state polling mode is enabled, use it.
Else use the native api.
This is useful while watching remote directory.
Such as the `fs.watch` won't catch the SMB server's file change event.
2013-10-21 15:26:20 +08:00
Jeremy Ashkenas
c22707cd53
Fixes #2941 -- don't destroy extensionless filenames for --join
2013-10-20 19:09:55 -03:00
Jeremy Ashkenas
351c875576
merged in stricter noncallables
2013-10-20 18:49:30 -03:00
Jeremy Ashkenas
35b64d7f18
Merge pull request #3211 from marchaefner/issue2181
...
Fix compilation for conditional assignment
2013-10-20 14:16:38 -07:00
Jeremy Ashkenas
db87d817e8
Merge pull request #3012 from imcotton/parallel-loading
...
Script loading parallelized in browser
2013-10-20 14:10:40 -07:00
Marc Häfner
4cc2c305a4
Fixes #2181 -- conditional assignment as subexpression
...
* Parenthesize compilation of `||=` and `&&=` (when needed).
* Fix variable caching for `?=`
2013-10-20 22:59:01 +02:00
Jeremy Ashkenas
a5513c45d0
Fixes #3047 -- Fixes module.paths when running directly with no explicit passed-in files.
2013-10-20 17:50:13 -03:00
Jeremy Ashkenas
c820e0241e
Fixes #3053 - error for mismatched own/for-in without an index.
2013-10-20 17:40:50 -03:00
Jeremy Ashkenas
eb2ac2c64d
Fixes #3063 -- wait a moment so that an error can be raised.
2013-10-20 17:04:52 -03:00
Jeremy Ashkenas
59cf19fd1c
Fixes #3072 -- tweak process.argv to match when running REPL
2013-10-20 16:53:08 -03:00
Jeremy Ashkenas
d5a25d138d
Fixes #3089 -- don't mutate options passed in to compile()
2013-10-20 16:21:06 -03:00
Jeremy Ashkenas
a7ecd80c92
Merge pull request #3096 from marchaefner/issue2994
...
Disallow single-line `IF expr ELSE` without `THEN`
2013-10-20 12:13:39 -07:00
Jeremy Ashkenas
465cffc675
Merge pull request #3113 from mklement0/make-repl-use-global-context
...
Make the REPL *CLI* use the global context to be consistent with the node REPL *CLI*.
2013-10-20 09:17:07 -07:00
Jeremy Ashkenas
302a46d093
Merge pull request #3132 from caitp/issue-3132
...
Format block-comments better
2013-10-20 09:08:40 -07:00
Jeremy Ashkenas
392767a04e
Fixes #3143 -- Potential memory leaks caused by use of fat arrow next to other (non-fat-arrow-using) long-lived closures.
2013-10-20 12:53:18 -03:00
Jeremy Ashkenas
928f949761
Fixes #3160 -- a missing bit of locationData
2013-10-20 12:15:15 -03:00
Jeremy Ashkenas
2b03fa9077
Fixes #3166 -- add a (simpler) flag to suppress the generated header.
2013-10-20 12:03:37 -03:00
Jeremy Ashkenas
cfdb774da9
CoffeeScript REPL should be able to require coffeescript files.
2013-10-20 11:22:23 -03:00