-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move
ArrayBuffer.prototype.transfer
and friends to stable ES
- Loading branch information
Showing
30 changed files
with
144 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
packages/core-js-pure/override/modules/es.array-buffer.detached.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
// empty |
1 change: 1 addition & 0 deletions
1
packages/core-js-pure/override/modules/es.array-buffer.transfer-to-fixed-length.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
// empty |
1 change: 1 addition & 0 deletions
1
packages/core-js-pure/override/modules/es.array-buffer.transfer.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
// empty |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
'use strict'; | ||
require('../../stable/array-buffer'); | ||
var parent = require('../../stable/array-buffer/detached'); | ||
require('../../modules/esnext.array-buffer.detached'); | ||
|
||
module.exports = parent; |
4 changes: 3 additions & 1 deletion
4
packages/core-js/actual/array-buffer/transfer-to-fixed-length.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
'use strict'; | ||
require('../../stable/array-buffer'); | ||
var parent = require('../../stable/array-buffer/transfer-to-fixed-length'); | ||
require('../../modules/esnext.array-buffer.transfer-to-fixed-length'); | ||
|
||
module.exports = parent; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
'use strict'; | ||
require('../../stable/array-buffer'); | ||
var parent = require('../../stable/array-buffer/transfer'); | ||
require('../../modules/esnext.array-buffer.transfer'); | ||
|
||
module.exports = parent; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
'use strict'; | ||
require('../../modules/es.array-buffer.constructor'); | ||
require('../../modules/es.array-buffer.slice'); | ||
require('../../modules/es.array-buffer.detached'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
'use strict'; | ||
require('../../modules/es.array-buffer.constructor'); | ||
require('../../modules/es.array-buffer.slice'); | ||
require('../../modules/es.array-buffer.transfer-to-fixed-length'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
'use strict'; | ||
require('../../modules/es.array-buffer.constructor'); | ||
require('../../modules/es.array-buffer.slice'); | ||
require('../../modules/es.array-buffer.transfer'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
'use strict'; | ||
var DESCRIPTORS = require('../internals/descriptors'); | ||
var defineBuiltInAccessor = require('../internals/define-built-in-accessor'); | ||
var isDetached = require('../internals/array-buffer-is-detached'); | ||
|
||
var ArrayBufferPrototype = ArrayBuffer.prototype; | ||
|
||
if (DESCRIPTORS && !('detached' in ArrayBufferPrototype)) { | ||
defineBuiltInAccessor(ArrayBufferPrototype, 'detached', { | ||
configurable: true, | ||
get: function detached() { | ||
return isDetached(this); | ||
} | ||
}); | ||
} |
11 changes: 11 additions & 0 deletions
11
packages/core-js/modules/es.array-buffer.transfer-to-fixed-length.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
'use strict'; | ||
var $ = require('../internals/export'); | ||
var $transfer = require('../internals/array-buffer-transfer'); | ||
|
||
// `ArrayBuffer.prototype.transferToFixedLength` method | ||
// https://tc39.es/proposal-arraybuffer-transfer/#sec-arraybuffer.prototype.transfertofixedlength | ||
if ($transfer) $({ target: 'ArrayBuffer', proto: true }, { | ||
transferToFixedLength: function transferToFixedLength() { | ||
return $transfer(this, arguments.length ? arguments[0] : undefined, false); | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
'use strict'; | ||
var $ = require('../internals/export'); | ||
var $transfer = require('../internals/array-buffer-transfer'); | ||
|
||
// `ArrayBuffer.prototype.transfer` method | ||
// https://tc39.es/proposal-arraybuffer-transfer/#sec-arraybuffer.prototype.transfer | ||
if ($transfer) $({ target: 'ArrayBuffer', proto: true }, { | ||
transfer: function transfer() { | ||
return $transfer(this, arguments.length ? arguments[0] : undefined, true); | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,3 @@ | ||
'use strict'; | ||
var DESCRIPTORS = require('../internals/descriptors'); | ||
var defineBuiltInAccessor = require('../internals/define-built-in-accessor'); | ||
var isDetached = require('../internals/array-buffer-is-detached'); | ||
|
||
var ArrayBufferPrototype = ArrayBuffer.prototype; | ||
|
||
if (DESCRIPTORS && !('detached' in ArrayBufferPrototype)) { | ||
defineBuiltInAccessor(ArrayBufferPrototype, 'detached', { | ||
configurable: true, | ||
get: function detached() { | ||
return isDetached(this); | ||
} | ||
}); | ||
} | ||
// TODO: Remove from `core-js@4` | ||
require('../modules/es.array-buffer.detached'); |
12 changes: 2 additions & 10 deletions
12
packages/core-js/modules/esnext.array-buffer.transfer-to-fixed-length.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,3 @@ | ||
'use strict'; | ||
var $ = require('../internals/export'); | ||
var $transfer = require('../internals/array-buffer-transfer'); | ||
|
||
// `ArrayBuffer.prototype.transferToFixedLength` method | ||
// https://tc39.es/proposal-arraybuffer-transfer/#sec-arraybuffer.prototype.transfertofixedlength | ||
if ($transfer) $({ target: 'ArrayBuffer', proto: true }, { | ||
transferToFixedLength: function transferToFixedLength() { | ||
return $transfer(this, arguments.length ? arguments[0] : undefined, false); | ||
} | ||
}); | ||
// TODO: Remove from `core-js@4` | ||
require('../modules/es.array-buffer.transfer-to-fixed-length'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,3 @@ | ||
'use strict'; | ||
var $ = require('../internals/export'); | ||
var $transfer = require('../internals/array-buffer-transfer'); | ||
|
||
// `ArrayBuffer.prototype.transfer` method | ||
// https://tc39.es/proposal-arraybuffer-transfer/#sec-arraybuffer.prototype.transfer | ||
if ($transfer) $({ target: 'ArrayBuffer', proto: true }, { | ||
transfer: function transfer() { | ||
return $transfer(this, arguments.length ? arguments[0] : undefined, true); | ||
} | ||
}); | ||
// TODO: Remove from `core-js@4` | ||
require('../modules/es.array-buffer.transfer'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
'use strict'; | ||
var parent = require('../../es/array-buffer/detached'); | ||
|
||
module.exports = parent; |
4 changes: 4 additions & 0 deletions
4
packages/core-js/stable/array-buffer/transfer-to-fixed-length.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
'use strict'; | ||
var parent = require('../../es/array-buffer/transfer-to-fixed-length'); | ||
|
||
module.exports = parent; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
'use strict'; | ||
var parent = require('../../es/array-buffer/transfer'); | ||
|
||
module.exports = parent; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.