51 Commits

Author SHA1 Message Date
Sebastian McKenzie
7f57d3d6a2 fix experimental object spread/rest helper 2014-11-23 21:50:49 +11:00
Sebastian McKenzie
32f8f9e663 change arguments to array to an additional faster helper method 2014-11-23 21:43:28 +11:00
Sebastian McKenzie
4502aee988 add support for call expression abstract references and more versatile tests 2014-11-23 18:37:30 +11:00
Sebastian McKenzie
fcc4734a1f complete abstract references support - parser support left 2014-11-23 16:47:13 +11:00
Sebastian McKenzie
1a58087460 use toArray inline helper instead of Array.from #203 #199 2014-11-23 11:59:18 +11:00
Sebastian McKenzie
e4a3d222d6 fix constructor spread optimisation - thanks @zloirock 2014-11-23 01:16:09 +11:00
Sebastian McKenzie
74f36cfaa0 Merge pull request #202 from RReverser/webworker-runtime
Fix runtime injection in Web Worker.
2014-11-22 23:29:07 +11:00
Ingvar Stepanyan
60713f0e5f Speed up constructor spreads.
Replace slow .bind with manual .create+.apply.
Gives up to 19x speed up depending on browser.

http://jsperf.com/apply-constructor
2014-11-22 14:22:50 +02:00
Ingvar Stepanyan
a69f095720 Fix runtime injection in Web Worker.
Web Workers don't have `window` object but they have `self`
(which is available in regular windows as well).
2014-11-22 14:14:42 +02:00
Sebastian McKenzie
fb39df71eb support array destructuring on iterables - fixes #194 2014-11-19 21:10:40 +11:00
Sebastian McKenzie
34599a21cb clean up common-interop module formatter 2014-11-19 12:40:10 +11:00
Sebastian McKenzie
9fb8a80f60 support raw property on tagged template literals - closes #164 2014-11-15 03:00:53 +11:00
Sebastian McKenzie
458e3d48f6 use Array.from instead of Array.prototype.slice in spread transformer and support NewExpression spreads - fixes #148 2014-11-12 18:38:30 +11:00
Sebastian McKenzie
ed7378cc2d add apply-constructor declaration and add support for not returning generated code in opts.code 2014-11-12 18:29:03 +11:00
Sebastian McKenzie
9318d63b5c add let-scoping-return template to let scoping transformer 2014-11-10 08:16:47 +11:00
Sebastian McKenzie
b2ab0dbedc add self-global template to runtime generation 2014-11-10 08:16:38 +11:00
Sebastian McKenzie
6e5917e537 make array comprehensions use for-of unless using an array literal - fixes #98 2014-11-03 21:15:49 +11:00
Sebastian McKenzie
95f3ca6348 Merge branch 'master' into code-generator
Conflicts:
	lib/6to5/transformers/classes.js
	test/fixtures/transformation/source-maps/class/expected.js
	test/fixtures/transformation/source-maps/class/source-mappings.json
2014-11-03 13:38:44 +11:00
Sebastian McKenzie
c17878913b add classProps declaration to simplify/nicen up class property defining - closes #88 2014-11-03 13:36:23 +11:00
Sebastian McKenzie
3cd7ed69a3 remove useless blank template 2014-11-03 11:16:48 +11:00
Sebastian McKenzie
ce4220644d abstract subclassing into declaration #88 2014-10-23 08:59:52 +11:00
Sebastian McKenzie
44966849f9 remove useless root variable in umd module formatter 2014-10-19 17:48:59 +11:00
Sebastian McKenzie
e76462303e add umd module formatter - closes #82 2014-10-19 17:39:41 +11:00
Sebastian McKenzie
fceff4b52f add amd module formatter #82 2014-10-19 17:05:24 +11:00
Sebastian McKenzie
e97086f5f7 always slice spread literals 2014-10-14 14:58:17 +11:00
Sebastian McKenzie
3b22cb283b use templates instead of separate declarations logic 2014-10-14 14:58:17 +11:00
Sebastian McKenzie
1f61e7675b add file alias declarations so we can alias certain long function calls - resolves #62 2014-10-14 08:49:53 +11:00
Sebastian McKenzie
0ce6f21a14 remove unused templates 2014-10-13 14:24:47 +11:00
Sebastian McKenzie
e00ba1d8bb remove array comprehension if template as it's nastier than using ast-types 2014-10-13 14:11:20 +11:00
Sebastian McKenzie
f7a84c36cd inherit temporary computed property closure name from AssignmentExpressions and VariableDeclarators - #56 2014-10-13 12:25:40 +11:00
Sebastian McKenzie
252e9eea39 remove id from class template 2014-10-13 03:27:42 +11:00
Sebastian McKenzie
2e404c92c8 better support for Identifier in ForOfStatement 2014-10-12 13:39:59 +11:00
Sebastian McKenzie
bb697c6436 fix static member expression calls, make classes more spec-compliant 2014-10-12 13:39:10 +11:00
Sebastian McKenzie
0f7da020e3 change obj references to a unique identifier 2014-10-12 00:23:13 +11:00
Sebastian McKenzie
58da989164 fix super constructor call - fixes #34 2014-10-10 20:37:15 +11:00
Sebastian McKenzie
fb67ab9b5d make super behaviour more spec compliant - fixes #32 2014-10-10 15:49:28 +11:00
Sebastian McKenzie
35bb0bc71d inherit super class static properties - fixes #31 2014-10-10 15:07:55 +11:00
Sebastian McKenzie
3e34bbe722 support static property on ClassMethods - fixes #28 2014-10-10 13:57:08 +11:00
Sebastian McKenzie
a1bf8ab788 migrate to improved module syntax - fixes #25 2014-10-09 23:16:55 +11:00
Sebastian McKenzie
b6e533ec5d handle ReturnStatements in block binding - closes #24 2014-10-09 20:19:22 +11:00
Sebastian McKenzie
fc7c26e924 upgrade to esprima-fb - finalise es6 module syntax - closes #14 2014-10-09 13:30:22 +11:00
Sebastian McKenzie
5d9fc19f76 support ClassExpression - fixes #21 2014-10-09 13:11:07 +11:00
Sebastian McKenzie
577877b813 add support for this in computed property names 2014-10-08 15:36:45 +11:00
Sebastian McKenzie
5e41a88973 add more tests 2014-10-01 11:03:16 +10:00
Sebastian McKenzie
0e19006641 add destructuring support 2014-09-29 18:29:08 +10:00
Sebastian McKenzie
908beea515 dry up array comprehension for single block 2014-09-29 16:27:35 +10:00
Sebastian McKenzie
74a661bf44 implement array comprehension 2014-09-29 15:35:03 +10:00
Sebastian McKenzie
b0cfbb20ca add iterators 2014-09-29 14:51:33 +10:00
Sebastian McKenzie
fd932e20e9 hoist var declarations to before function definition when let block scoping 2014-09-29 13:36:39 +10:00
Sebastian McKenzie
4859a25876 additional helper templates 2014-09-29 03:43:37 +10:00