Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to spec version of 11 June 2020 #52

Merged
merged 46 commits into from
Jul 3, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
7928bd3
Update WPT and test runner
MattiasBuelens Jun 27, 2020
c9370f6
Manually destructure pipe options
MattiasBuelens Jun 27, 2020
7a6359b
Fix name of excluded test
MattiasBuelens Jun 27, 2020
d62910f
Fix property lookup order in pipeThrough
MattiasBuelens Jun 27, 2020
11fd6ac
Update dependencies
MattiasBuelens Jun 27, 2020
9a2b1dd
Target es2018 instead of esnext
MattiasBuelens Jun 27, 2020
65c561f
Fix input checking for getReader
MattiasBuelens Jun 27, 2020
d1aafd3
Expose reader and controller classes
MattiasBuelens Jun 27, 2020
b68ad66
Align errors from illegal constructors
MattiasBuelens Jun 27, 2020
66f5edd
Tweak lint settings
MattiasBuelens Jun 27, 2020
e9ad57b
Fix input checking in ReadableStream constructor
MattiasBuelens Jun 27, 2020
777173a
Rename getIterator() to values()
MattiasBuelens Jun 27, 2020
d543b5d
Refactor async iterator construction
MattiasBuelens Jun 27, 2020
79cc3a1
Fix typo
MattiasBuelens Jun 27, 2020
cdc8c00
Update async iterator implementation to align with WebIDL
MattiasBuelens Jun 27, 2020
eb28107
Tweak async iterator options handling
MattiasBuelens Jun 27, 2020
d503447
Export ReadableWritablePair type
MattiasBuelens Jun 27, 2020
3d3a62b
Update queuing strategies
MattiasBuelens Jun 27, 2020
6e736bd
Extract isDictionary helper
MattiasBuelens Jun 27, 2020
c963fc0
Make byobRequest and BYOBRequest.view nullable
MattiasBuelens Jun 27, 2020
54768f8
Use template strings to avoid escaping single quotes
MattiasBuelens Jun 27, 2020
953d687
Make global variables non-enumerable
MattiasBuelens Jun 27, 2020
7797534
Fix enumerability and stringification
MattiasBuelens Jun 27, 2020
bba1988
Fix required argument
MattiasBuelens Jun 27, 2020
49f343d
Add brand checks to queuing strategies
MattiasBuelens Jun 27, 2020
50f5f0f
Fix minified builds
MattiasBuelens Jun 27, 2020
ff0c17f
Retain function names for "size" methods
MattiasBuelens Jun 27, 2020
b6061f5
Fix optional arguments
MattiasBuelens Jun 27, 2020
6ebc6d9
Test both minified and non-minified builds
MattiasBuelens Jun 27, 2020
49baba2
Fix typo
MattiasBuelens Jun 27, 2020
962a149
Keep all function names that match a class name
MattiasBuelens Jun 27, 2020
731b818
Update ignored tests
MattiasBuelens Jun 27, 2020
ad8eb02
Hide private fields in generated type definitions
MattiasBuelens Jun 27, 2020
d10db8a
Update API
MattiasBuelens Jun 27, 2020
7416823
Narrow return type of CountQueuingStrategy.size
MattiasBuelens Jun 27, 2020
5de2df1
Fix type tests
MattiasBuelens Jun 27, 2020
a6ed4f7
Temporarily disable a few DOM type compatibility tests
MattiasBuelens Jun 27, 2020
d7b8dcc
Tiny cleanup
MattiasBuelens Jun 27, 2020
1235db5
Fix tests on Node 10
MattiasBuelens Jun 28, 2020
01e0fd9
Disable IDL tests for ES5 build (for now)
MattiasBuelens Jul 3, 2020
c6c5a77
Reformat output from test runner
MattiasBuelens Jul 3, 2020
6f41307
Fix unhandled rejections logged multiple times
MattiasBuelens Jul 3, 2020
ebfe754
Polyfill Promise.allSettled for Node 10
MattiasBuelens Jul 3, 2020
3a174b0
Add state checks to Close() and Enqueue()
MattiasBuelens Jul 3, 2020
9c2cef5
Update spec/wpt commit links [skip ci]
MattiasBuelens Jul 3, 2020
243f4b1
Update changelog [skip ci]
MattiasBuelens Jul 3, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Make global variables non-enumerable
  • Loading branch information
MattiasBuelens committed Jun 27, 2020
commit 953d687b94f2ce06cf886a00c7556376c2896aa1
11 changes: 9 additions & 2 deletions src/polyfill.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import {
WritableStreamDefaultWriter
} from './ponyfill';
import { globals } from './utils';
import ObjectAssign from './stub/object-assign';

// Export
export * from './ponyfill';
Expand All @@ -40,5 +39,13 @@ const exports = {

// Add classes to global scope
if (typeof globals !== 'undefined') {
ObjectAssign(globals, exports);
for (const prop in exports) {
if (Object.prototype.hasOwnProperty.call(exports, prop)) {
Object.defineProperty(globals, prop, {
value: exports[prop as (keyof typeof exports)],
writable: true,
configurable: true
});
}
}
}
16 changes: 0 additions & 16 deletions src/stub/object-assign.ts

This file was deleted.