246 Commits

Author SHA1 Message Date
Mohamed Hegazy
d36d2b3eaa Merge pull request #8771 from YuichiNukiyama/fix8505
add SharedArrayBuffer
2016-06-08 13:27:09 -07:00
york yao
f5ab9d7289 change type definition for Object.create 2016-06-06 07:22:37 +08:00
Yuichi Nukiyama
4e415ebfd0 add SharedArrayBuffer
fix
2016-05-24 00:41:44 +09:00
Mohamed Hegazy
f1662f8a18 Fix #8729: Make JSON.stringify accept null and undefined replacers 2016-05-21 12:59:09 -07:00
Juan Luis Boya García
5fb68da1ad Modified all other findIndex() definitions 2016-05-20 12:17:15 +02:00
Juan Luis Boya García
0128192600 Fix findIndex definition 2016-05-20 03:41:56 +02:00
Noj Vek
94d8888b09 Fix #8582: Add Error.prototype.stack definition 2016-05-14 17:29:04 -07:00
Yui
b68e93966a Fix 8482: Add Object.values and Object.entries (#8538)
* Add es2017.Object library file

* Add tests and baselines

* Fix unittest

* Add es2017 lib flag

* Update baselines

* Add tests and baselines

* Address PR: add tests

* Address PR: add tests
2016-05-10 14:22:00 -07:00
Arnavion
0b789ff0bc Add string literal union type overload for String.normalize parameter. 2016-05-07 16:29:45 -07:00
Arnavion
8bb75ec3da {Array, TypedArray}.{copyWithin, fill, sort} return this. 2016-05-07 16:28:15 -07:00
Arnavion
73590f4fb1 {Map, WeakMap}.set and {Set, WeakSet}.add return this. 2016-05-07 16:24:30 -07:00
Yui
673fa41418 Fix 8407: Allow (weak)map & (weak)set constructor when targeting ES5 using ES6 library (#8451)
* Move iterabl related stuffs off from es2015.collection

* Move symbol.wellknown stuffs off from es2015.collection

* Add map & set constructor support when targeting ES5

* Address PR: move symbol.iterator to es2015.iterable

* Move Symbol.Iterator into es2015.iterable

* Update baselines
2016-05-05 11:10:00 -07:00
Mohamed Hegazy
9ad08324d8 Fix #8357: Remove optionality for the definition of IteratorResult 2016-05-03 15:53:17 -07:00
Mohamed Hegazy
b6e98e52c6 Fix #8338: add signatures to RegExp constructor accepting RegExp 2016-04-28 14:48:53 -07:00
Nathan Shively-Sanders
465e9c82ff Revert Function.bind/apply/call this-overloads 2016-04-28 08:48:08 -07:00
Zhengbo Li
a1039bb061 Routine update of dom lib files 2016-04-27 13:22:10 -07:00
Nima Zahedi
3e2fff2150 Array.prototype.filter.not.forcing.boolean (#7779)
* Add test for issue

* Fix issue

* Add baselines

* fix issue
2016-04-18 12:46:52 -07:00
Zhengbo Li
b9c4b026fe Merge pull request #7619 from zhengbli/updateDom20160321
Routine update of dom-related lib.d.ts
2016-04-07 15:33:43 -07:00
Nathan Shively-Sanders
3704ad74d1 Merge pull request #6739 from Microsoft/this-function-types
This function types
2016-04-07 10:31:01 -07:00
Zhengbo Li
3e78ff0b3c Sync with TSJS repo 2016-04-06 22:17:14 -07:00
Kanchalai Tanglertsampan
71994dde4f Adress PR: add nullability to signature 2016-04-05 14:12:55 -07:00
Kanchalai Tanglertsampan
95d4983c6e Add nullability into signature 2016-04-05 11:38:12 -07:00
Yui
988063e9cf Move PropertyKey from es5 to es2015.core
* Move propertyKey definition to es2015.core

* Update baselines to reflect how one will use --lib
2016-04-05 11:08:26 -07:00
Yui
11887ccc29 Adjustmodularize lib
* Merge array, function, math, number, object, regexp, string into es2015.core

* Update baselines

* Add node.d.ts; need to fix head of the output

* Update unittests from add node as an option for --lib

* Move interface declaration into NodeJS namespace

* Add console into Node.d.ts

* Add compiler baseline-tests for using --lib node

* Change name from full.es2015 to es6. This is a es6 library file used when no --lib is specified and --target is es6

* Remove add node.d.ts into src/lib

Remove node.d.ts

Revert "Update unittests from add node as an option for --lib"

This reverts commit 51692736803d3f75905af695bed07249d3daf24b.

Revert "Add compiler baseline-tests for using --lib node"

This reverts commit 17e437b4c7afb5046539bc71cc32d9084b6f57a2.
2016-04-04 22:02:12 -07:00
Nathan Shively-Sanders
ce68932475 Merge branch 'master' into this-function-types 2016-03-31 10:46:03 -07:00
Kanchalai Tanglertsampan
fd5c9bd599 Fix test failure by having correct case for the file-name 2016-03-30 14:03:14 -07:00
Kanchalai Tanglertsampan
0ba4a2c9fe Fix style and whitespace 2016-03-30 11:08:37 -07:00
Kanchalai Tanglertsampan
15367e7dc5 Clean up library files 2016-03-28 16:26:15 -07:00
Kanchalai Tanglertsampan
4e6cef2965 Addres PR: change lib filenames from es6 to es2015 and es7 to es2016 2016-03-28 14:49:22 -07:00
Kanchalai Tanglertsampan
168118f12b Modularize ES6 and ES7 library files
Separate ES6 library feature-by-feature into smaller files

Break ES6 library

Remove unused ES6

Rename core to es5

Update building library files in JakeFile

separate symbol into its own file

separate well-known symbol into its own file

remove iterable and symbol component from es6.string.d.ts

remove iterable and symbol components from es6.collection.d.ts

remove symbol components from es6.math.d.ts

remove iterable and symbol components from es6.object.d.ts

remove iterable and symbol components from es6.promise.d.ts

remove iterable and symbol component from es6.reflect.d.ts

remove iterable and symbol components from es6.proxy.d.ts

split regexp into its own file

remove unused file

rename es7 array-include d.ts file

Include new lib files into compilation

Move symbol.iterable to symbol.wellknown

Move functions/methods that use propertyKey back to its original interface

Rename dome.es6 to dom.iterable
Take dependency on dom.generated.d.ts

Rename importcore.d.ts to importes5.d.ts

Add es6.d.ts and es7.d.ts that contain /// references to their associated sub-features files

Update library compilation

Fix harness broken from renaming generated library files

Remove intl.d.ts
Remove preset lib files

Use lib.full.es6.d.ts instead of lib.es6.d.ts

Add intl.d.ts to es5.d.ts

Remove unused RegexpConstructor interface

Separate generator into its own file

Update Jakefile

Remove iterable-iterator dependence

Use lower case for lib filename

Include no-default comment

Remove newline on top of the file
2016-03-28 13:49:46 -07:00
Nathan Shively-Sanders
9e5f26048b Merge branch 'master' into this-function-types 2016-03-28 10:12:25 -07:00
Arnavion
bb5fa1622b Revert change to Object.assign 2016-03-23 16:02:38 -07:00
Arnavion
d2d02c796b RegExp.compile() actually returns this, per ES6 annex B. 2016-03-22 19:49:43 -07:00
Arnavion
7bb0ce9048 Add nullability annotations to core.d.ts and es6.d.ts 2016-03-22 18:39:12 -07:00
zhengbli
07185c1c4a Routine update of dom-related lib.d.ts 2016-03-21 12:55:55 -07:00
Nathan Shively-Sanders
fa22250110 Merge branch 'master' into this-function-types 2016-03-09 13:36:42 -08:00
Daniel Rosenwasser
e579d17e7e Revert "spelling fixes for src" on generated dom lib.
This reverts commit bb85817d7da071ac0a9ad2eea6deb2633c7ec480.
2016-02-26 12:46:24 -08:00
Josh Soref
bb85817d7d spelling fixes for src
Fixes:
* actual
* algorithm
* analyze
* applies
* collapse
* contrast
* definition
* diagnostic
* different
* displayed
* display
* documentation
* finite
* function
* highlight
* initialize
* intentional
* interface
* invariants
* items
* keystroke
* language
* literal
* original
* output
* position
* receive
* recorder
* response
* sequence
* simplicity
* statement

Changing a \ to a /
2016-02-25 20:08:44 +00:00
Nathan Shively-Sanders
e7aa7e4958 Merge branch 'master' into this-function-types 2016-02-16 13:57:25 -08:00
Nathan Shively-Sanders
a014edf55a Address more comments and remove temp test.
I added the temp test by mistake.
2016-02-16 13:00:21 -08:00
Mohamed Hegazy
727b9a9ceb Merge pull request #6629 from LPGhatguy/master
Update Array.concat type signature to fix #6594
2016-02-04 13:43:28 -08:00
Nathan Shively-Sanders
8032b06f33 Merge branch 'master' into this-function-types 2016-02-02 16:16:46 -08:00
Nathan Shively-Sanders
675e0816d4 Make this-type of bind's return explicit 2016-02-02 14:46:44 -08:00
zhengbli
064de382cf Routine update of lib.d.ts 20160131 2016-01-31 08:13:26 -08:00
Nathan Shively-Sanders
5fe8478159 Add overloads for Function.apply/call/bind
The new overloads use this types to specify the return type of these
functions as well as the type of `thisArg`.
2016-01-29 14:46:01 -08:00
Lucien Greathouse
f9eddcebc8 Update Array.concat type signature to fix #6594 2016-01-26 14:25:16 -07:00
Anders Hejlsberg
7561642104 Adding const/readonly to core.d.ts and es6.d.ts 2016-01-24 15:44:13 -08:00
Anders Hejlsberg
c826a900bc Merge branch 'master' into readonlyMembers
Conflicts:
	src/compiler/types.ts
2016-01-24 15:21:03 -08:00
falsandtru
5cb13f3909 Remove clear method in WeakSet and WeakMap 2016-01-23 19:08:32 +09:00
Daniel Rosenwasser
d5a585fb96 Fix 'includes' method in 'Int8Array'. 2016-01-22 13:43:23 -08:00