cdk-comprehend-s3olap 2.0.59 → 2.0.62
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.jsii +4 -4
- package/lib/cdk-comprehend-s3olap.js +2 -2
- package/lib/comprehend-lambdas.js +2 -2
- package/lib/iam-roles.js +4 -4
- package/node_modules/aws-sdk/CHANGELOG.md +6 -1
- package/node_modules/aws-sdk/README.md +1 -1
- package/node_modules/aws-sdk/apis/glue-2017-03-31.min.json +306 -295
- package/node_modules/aws-sdk/apis/iotwireless-2020-11-22.min.json +128 -87
- package/node_modules/aws-sdk/apis/pinpoint-2016-12-01.min.json +274 -191
- package/node_modules/aws-sdk/clients/glue.d.ts +31 -2
- package/node_modules/aws-sdk/clients/iotwireless.d.ts +45 -0
- package/node_modules/aws-sdk/clients/pinpoint.d.ts +96 -0
- package/node_modules/aws-sdk/clients/quicksight.d.ts +10 -10
- package/node_modules/aws-sdk/clients/sso.d.ts +19 -19
- package/node_modules/aws-sdk/clients/ssoadmin.d.ts +82 -82
- package/node_modules/aws-sdk/clients/ssooidc.d.ts +11 -11
- package/node_modules/aws-sdk/dist/aws-sdk-core-react-native.js +1 -1
- package/node_modules/aws-sdk/dist/aws-sdk-react-native.js +4 -4
- package/node_modules/aws-sdk/dist/aws-sdk.js +3 -3
- package/node_modules/aws-sdk/dist/aws-sdk.min.js +2 -2
- package/node_modules/aws-sdk/lib/core.js +1 -1
- package/node_modules/aws-sdk/package.json +1 -1
- package/node_modules/esbuild/install.js +4 -4
- package/node_modules/esbuild/lib/main.js +7 -7
- package/node_modules/esbuild/package.json +22 -22
- package/node_modules/esbuild-linux-64/bin/esbuild +0 -0
- package/node_modules/esbuild-linux-64/package.json +1 -1
- package/node_modules/object.assign/.eslintrc +3 -1
- package/node_modules/object.assign/.nycrc +0 -5
- package/node_modules/object.assign/CHANGELOG.md +20 -0
- package/node_modules/object.assign/README.md +7 -6
- package/node_modules/object.assign/implementation.js +25 -21
- package/node_modules/object.assign/package.json +25 -13
- package/node_modules/object.assign/test/implementation.js +19 -0
- package/node_modules/object.assign/test/tests.js +2 -7
- package/node_modules/object.assign/test.html +18458 -0
- package/package.json +7 -7
- package/node_modules/object.assign/.eslintignore +0 -1
- package/node_modules/object.assign/.github/workflows/rebase.yml +0 -15
- package/node_modules/object.assign/.github/workflows/require-allow-edits.yml +0 -14
- package/node_modules/object.assign/dist/browser.js +0 -865
@@ -89,8 +89,8 @@ function validateBinaryVersion(...command) {
|
|
89
89
|
const stdout = child_process.execFileSync(command.shift(), command, {
|
90
90
|
stdio: "pipe"
|
91
91
|
}).toString().trim();
|
92
|
-
if (stdout !== "0.14.
|
93
|
-
throw new Error(`Expected ${JSON.stringify("0.14.
|
92
|
+
if (stdout !== "0.14.54") {
|
93
|
+
throw new Error(`Expected ${JSON.stringify("0.14.54")} but got ${JSON.stringify(stdout)}`);
|
94
94
|
}
|
95
95
|
}
|
96
96
|
function isYarn() {
|
@@ -142,7 +142,7 @@ function installUsingNPM(pkg, subpath, binPath) {
|
|
142
142
|
try {
|
143
143
|
fs2.writeFileSync(path2.join(installDir, "package.json"), "{}");
|
144
144
|
child_process.execSync(
|
145
|
-
`npm install --loglevel=error --prefer-offline --no-audit --progress=false ${pkg}@${"0.14.
|
145
|
+
`npm install --loglevel=error --prefer-offline --no-audit --progress=false ${pkg}@${"0.14.54"}`,
|
146
146
|
{ cwd: installDir, stdio: "pipe", env }
|
147
147
|
);
|
148
148
|
const installedBinPath = path2.join(installDir, "node_modules", pkg, subpath);
|
@@ -193,7 +193,7 @@ function maybeOptimizePackage(binPath) {
|
|
193
193
|
}
|
194
194
|
}
|
195
195
|
async function downloadDirectlyFromNPM(pkg, subpath, binPath) {
|
196
|
-
const url = `https://registry.npmjs.org/${pkg}/-/${pkg}-${"0.14.
|
196
|
+
const url = `https://registry.npmjs.org/${pkg}/-/${pkg}-${"0.14.54"}.tgz`;
|
197
197
|
console.error(`[esbuild] Trying to download ${JSON.stringify(url)}`);
|
198
198
|
try {
|
199
199
|
fs2.writeFileSync(binPath, extractFileFromTarGzip(await fetch(url), subpath));
|
@@ -758,8 +758,8 @@ function createChannel(streamIn) {
|
|
758
758
|
if (isFirstPacket) {
|
759
759
|
isFirstPacket = false;
|
760
760
|
let binaryVersion = String.fromCharCode(...bytes);
|
761
|
-
if (binaryVersion !== "0.14.
|
762
|
-
throw new Error(`Cannot start service: Host version "${"0.14.
|
761
|
+
if (binaryVersion !== "0.14.54") {
|
762
|
+
throw new Error(`Cannot start service: Host version "${"0.14.54"}" does not match binary version ${JSON.stringify(binaryVersion)}`);
|
763
763
|
}
|
764
764
|
return;
|
765
765
|
}
|
@@ -1886,7 +1886,7 @@ if (process.env.ESBUILD_WORKER_THREADS !== "0") {
|
|
1886
1886
|
}
|
1887
1887
|
}
|
1888
1888
|
var _a;
|
1889
|
-
var isInternalWorkerThread = ((_a = worker_threads == null ? void 0 : worker_threads.workerData) == null ? void 0 : _a.esbuildVersion) === "0.14.
|
1889
|
+
var isInternalWorkerThread = ((_a = worker_threads == null ? void 0 : worker_threads.workerData) == null ? void 0 : _a.esbuildVersion) === "0.14.54";
|
1890
1890
|
var esbuildCommandAndArgs = () => {
|
1891
1891
|
if ((!ESBUILD_BINARY_PATH || false) && (path2.basename(__filename) !== "main.js" || path2.basename(__dirname) !== "lib")) {
|
1892
1892
|
throw new Error(
|
@@ -1952,7 +1952,7 @@ var fsAsync = {
|
|
1952
1952
|
}
|
1953
1953
|
}
|
1954
1954
|
};
|
1955
|
-
var version = "0.14.
|
1955
|
+
var version = "0.14.54";
|
1956
1956
|
var build = (options) => ensureServiceIsRunning().build(options);
|
1957
1957
|
var serve = (serveOptions, buildOptions) => ensureServiceIsRunning().serve(serveOptions, buildOptions);
|
1958
1958
|
var transform = (input, options) => ensureServiceIsRunning().transform(input, options);
|
@@ -2063,7 +2063,7 @@ var ensureServiceIsRunning = () => {
|
|
2063
2063
|
if (longLivedService)
|
2064
2064
|
return longLivedService;
|
2065
2065
|
let [command, args] = esbuildCommandAndArgs();
|
2066
|
-
let child = child_process.spawn(command, args.concat(`--service=${"0.14.
|
2066
|
+
let child = child_process.spawn(command, args.concat(`--service=${"0.14.54"}`, "--ping"), {
|
2067
2067
|
windowsHide: true,
|
2068
2068
|
stdio: ["pipe", "pipe", "inherit"],
|
2069
2069
|
cwd: defaultWD
|
@@ -2177,7 +2177,7 @@ var runServiceSync = (callback) => {
|
|
2177
2177
|
esbuild: node_exports
|
2178
2178
|
});
|
2179
2179
|
callback(service);
|
2180
|
-
let stdout = child_process.execFileSync(command, args.concat(`--service=${"0.14.
|
2180
|
+
let stdout = child_process.execFileSync(command, args.concat(`--service=${"0.14.54"}`), {
|
2181
2181
|
cwd: defaultWD,
|
2182
2182
|
windowsHide: true,
|
2183
2183
|
input: stdin,
|
@@ -2193,7 +2193,7 @@ var workerThreadService = null;
|
|
2193
2193
|
var startWorkerThreadService = (worker_threads2) => {
|
2194
2194
|
let { port1: mainPort, port2: workerPort } = new worker_threads2.MessageChannel();
|
2195
2195
|
let worker = new worker_threads2.Worker(__filename, {
|
2196
|
-
workerData: { workerPort, defaultWD, esbuildVersion: "0.14.
|
2196
|
+
workerData: { workerPort, defaultWD, esbuildVersion: "0.14.54" },
|
2197
2197
|
transferList: [workerPort],
|
2198
2198
|
execArgv: []
|
2199
2199
|
});
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "esbuild",
|
3
|
-
"version": "0.14.
|
3
|
+
"version": "0.14.54",
|
4
4
|
"description": "An extremely fast JavaScript and CSS bundler and minifier.",
|
5
5
|
"repository": "https://github.com/evanw/esbuild",
|
6
6
|
"scripts": {
|
@@ -15,27 +15,27 @@
|
|
15
15
|
"esbuild": "bin/esbuild"
|
16
16
|
},
|
17
17
|
"optionalDependencies": {
|
18
|
-
"@esbuild/linux-loong64": "0.14.
|
19
|
-
"esbuild-android-64": "0.14.
|
20
|
-
"esbuild-android-arm64": "0.14.
|
21
|
-
"esbuild-darwin-64": "0.14.
|
22
|
-
"esbuild-darwin-arm64": "0.14.
|
23
|
-
"esbuild-freebsd-64": "0.14.
|
24
|
-
"esbuild-freebsd-arm64": "0.14.
|
25
|
-
"esbuild-linux-32": "0.14.
|
26
|
-
"esbuild-linux-64": "0.14.
|
27
|
-
"esbuild-linux-arm": "0.14.
|
28
|
-
"esbuild-linux-arm64": "0.14.
|
29
|
-
"esbuild-linux-mips64le": "0.14.
|
30
|
-
"esbuild-linux-ppc64le": "0.14.
|
31
|
-
"esbuild-linux-riscv64": "0.14.
|
32
|
-
"esbuild-linux-s390x": "0.14.
|
33
|
-
"esbuild-netbsd-64": "0.14.
|
34
|
-
"esbuild-openbsd-64": "0.14.
|
35
|
-
"esbuild-sunos-64": "0.14.
|
36
|
-
"esbuild-windows-32": "0.14.
|
37
|
-
"esbuild-windows-64": "0.14.
|
38
|
-
"esbuild-windows-arm64": "0.14.
|
18
|
+
"@esbuild/linux-loong64": "0.14.54",
|
19
|
+
"esbuild-android-64": "0.14.54",
|
20
|
+
"esbuild-android-arm64": "0.14.54",
|
21
|
+
"esbuild-darwin-64": "0.14.54",
|
22
|
+
"esbuild-darwin-arm64": "0.14.54",
|
23
|
+
"esbuild-freebsd-64": "0.14.54",
|
24
|
+
"esbuild-freebsd-arm64": "0.14.54",
|
25
|
+
"esbuild-linux-32": "0.14.54",
|
26
|
+
"esbuild-linux-64": "0.14.54",
|
27
|
+
"esbuild-linux-arm": "0.14.54",
|
28
|
+
"esbuild-linux-arm64": "0.14.54",
|
29
|
+
"esbuild-linux-mips64le": "0.14.54",
|
30
|
+
"esbuild-linux-ppc64le": "0.14.54",
|
31
|
+
"esbuild-linux-riscv64": "0.14.54",
|
32
|
+
"esbuild-linux-s390x": "0.14.54",
|
33
|
+
"esbuild-netbsd-64": "0.14.54",
|
34
|
+
"esbuild-openbsd-64": "0.14.54",
|
35
|
+
"esbuild-sunos-64": "0.14.54",
|
36
|
+
"esbuild-windows-32": "0.14.54",
|
37
|
+
"esbuild-windows-64": "0.14.54",
|
38
|
+
"esbuild-windows-arm64": "0.14.54"
|
39
39
|
},
|
40
40
|
"license": "MIT"
|
41
41
|
}
|
Binary file
|
@@ -1,3 +1,23 @@
|
|
1
|
+
4.1.3 / 2022-08-05
|
2
|
+
==================
|
3
|
+
* [Refactor] make steps closer to actual spec
|
4
|
+
* [Refactor] simplify object coercible check
|
5
|
+
* [readme] remove defunct badges, add coverage and actions badges
|
6
|
+
* [eslint] ignore coverage output
|
7
|
+
* [meta] use `npmignore` to autogenerate an npmignore file
|
8
|
+
* [meta] remove audit-level
|
9
|
+
* [Deps] update `call-bind`, `define-properties`, `has-symbols`
|
10
|
+
* [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `@es-shims/api`, `aud`, `functions-have-names`, `safe-publish-latest`, `ses`, `tape`
|
11
|
+
* [actions] use `node/install` instead of `node/run`; use `codecov` action
|
12
|
+
* [actions] reuse common workflows
|
13
|
+
* [actions] update codecov uploader
|
14
|
+
* [Tests] add implementation tests
|
15
|
+
* [Tests] use `mock-property`
|
16
|
+
* [Tests] disable posttest pending `aud` handling `file:` deps
|
17
|
+
* [Tests] migrate remaining tests to Github Actions (#81)
|
18
|
+
* [Tests] gitignore coverage output
|
19
|
+
* [Tests] test node v1-v9 on Github Actions instead of travis; resume testing all minors (#80)
|
20
|
+
|
1
21
|
4.1.2 / 2020-10-30
|
2
22
|
==================
|
3
23
|
* [Refactor] use extracted `call-bind` instead of full `es-abstract`
|
@@ -1,6 +1,7 @@
|
|
1
|
-
#object.assign <sup>[![Version Badge][npm-version-svg]][npm-url]</sup>
|
1
|
+
# object.assign <sup>[![Version Badge][npm-version-svg]][npm-url]</sup>
|
2
2
|
|
3
|
-
[![
|
3
|
+
[![github actions][actions-image]][actions-url]
|
4
|
+
[![coverage][codecov-image]][codecov-url]
|
4
5
|
[![dependency status][deps-svg]][deps-url]
|
5
6
|
[![dev dependency status][dev-deps-svg]][dev-deps-url]
|
6
7
|
[![License][license-image]][license-url]
|
@@ -8,8 +9,6 @@
|
|
8
9
|
|
9
10
|
[![npm badge][npm-badge-png]][npm-url]
|
10
11
|
|
11
|
-
[![browser support][testling-png]][testling-url]
|
12
|
-
|
13
12
|
An Object.assign shim. Invoke its "shim" method to shim Object.assign if it is unavailable.
|
14
13
|
|
15
14
|
This package implements the [es-shim API](https://github.com/es-shims/api) interface. It works in an ES3-supported environment and complies with the [spec](http://www.ecma-international.org/ecma-262/6.0/#sec-object.assign). In an ES6 environment, it will also work properly with `Symbol`s.
|
@@ -126,10 +125,12 @@ Simply clone the repo, `npm install`, and run `npm test`
|
|
126
125
|
[deps-url]: https://david-dm.org/ljharb/object.assign
|
127
126
|
[dev-deps-svg]: https://david-dm.org/ljharb/object.assign/dev-status.svg?theme=shields.io
|
128
127
|
[dev-deps-url]: https://david-dm.org/ljharb/object.assign#info=devDependencies
|
129
|
-
[testling-png]: https://ci.testling.com/ljharb/object.assign.png
|
130
|
-
[testling-url]: https://ci.testling.com/ljharb/object.assign
|
131
128
|
[npm-badge-png]: https://nodei.co/npm/object.assign.png?downloads=true&stars=true
|
132
129
|
[license-image]: http://img.shields.io/npm/l/object.assign.svg
|
133
130
|
[license-url]: LICENSE
|
134
131
|
[downloads-image]: http://img.shields.io/npm/dm/object.assign.svg
|
135
132
|
[downloads-url]: http://npm-stat.com/charts.html?package=object.assign
|
133
|
+
[codecov-image]: https://codecov.io/gh/ljharb/object.assign/branch/main/graphs/badge.svg
|
134
|
+
[codecov-url]: https://app.codecov.io/gh/ljharb/object.assign/
|
135
|
+
[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/ljharb/object.assign
|
136
|
+
[actions-url]: https://github.com/ljharb/object.assign/actions
|
@@ -1,10 +1,7 @@
|
|
1
1
|
'use strict';
|
2
2
|
|
3
3
|
// modified from https://github.com/es-shims/es6-shim
|
4
|
-
var
|
5
|
-
var canBeObject = function (obj) {
|
6
|
-
return typeof obj !== 'undefined' && obj !== null;
|
7
|
-
};
|
4
|
+
var objectKeys = require('object-keys');
|
8
5
|
var hasSymbols = require('has-symbols/shams')();
|
9
6
|
var callBound = require('call-bind/callBound');
|
10
7
|
var toObject = Object;
|
@@ -14,29 +11,36 @@ var originalGetSymbols = hasSymbols ? Object.getOwnPropertySymbols : null;
|
|
14
11
|
|
15
12
|
// eslint-disable-next-line no-unused-vars
|
16
13
|
module.exports = function assign(target, source1) {
|
17
|
-
if (
|
18
|
-
var
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
14
|
+
if (target == null) { throw new TypeError('target must be an object'); }
|
15
|
+
var to = toObject(target); // step 1
|
16
|
+
if (arguments.length === 1) {
|
17
|
+
return to; // step 2
|
18
|
+
}
|
19
|
+
for (var s = 1; s < arguments.length; ++s) {
|
20
|
+
var from = toObject(arguments[s]); // step 3.a.i
|
21
|
+
|
22
|
+
// step 3.a.ii:
|
23
|
+
var keys = objectKeys(from);
|
23
24
|
var getSymbols = hasSymbols && (Object.getOwnPropertySymbols || originalGetSymbols);
|
24
25
|
if (getSymbols) {
|
25
|
-
syms = getSymbols(
|
26
|
-
for (
|
27
|
-
key = syms[
|
28
|
-
if ($propIsEnumerable(
|
29
|
-
$push(
|
26
|
+
var syms = getSymbols(from);
|
27
|
+
for (var j = 0; j < syms.length; ++j) {
|
28
|
+
var key = syms[j];
|
29
|
+
if ($propIsEnumerable(from, key)) {
|
30
|
+
$push(keys, key);
|
30
31
|
}
|
31
32
|
}
|
32
33
|
}
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
34
|
+
|
35
|
+
// step 3.a.iii:
|
36
|
+
for (var i = 0; i < keys.length; ++i) {
|
37
|
+
var nextKey = keys[i];
|
38
|
+
if ($propIsEnumerable(from, nextKey)) { // step 3.a.iii.2
|
39
|
+
var propValue = from[nextKey]; // step 3.a.iii.2.a
|
40
|
+
to[nextKey] = propValue; // step 3.a.iii.2.b
|
38
41
|
}
|
39
42
|
}
|
40
43
|
}
|
41
|
-
|
44
|
+
|
45
|
+
return to; // step 4
|
42
46
|
};
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "object.assign",
|
3
|
-
"version": "4.1.
|
3
|
+
"version": "4.1.3",
|
4
4
|
"author": "Jordan Harband",
|
5
5
|
"funding": {
|
6
6
|
"url": "https://github.com/sponsors/ljharb"
|
@@ -9,6 +9,7 @@
|
|
9
9
|
"license": "MIT",
|
10
10
|
"main": "index.js",
|
11
11
|
"scripts": {
|
12
|
+
"prepack": "npmignore --auto --commentLines=autogenerated",
|
12
13
|
"pretest": "npm run lint && es-shim-api --bound",
|
13
14
|
"test": "npm run tests-only && npm run test:ses",
|
14
15
|
"posttest": "aud --production",
|
@@ -19,7 +20,8 @@
|
|
19
20
|
"test:ses": "node test/ses-compat",
|
20
21
|
"lint": "eslint .",
|
21
22
|
"build": "mkdir -p dist && browserify browserShim.js > dist/browser.js",
|
22
|
-
"
|
23
|
+
"prepublishOnly": "safe-publish-latest && npm run build",
|
24
|
+
"prepublish": "not-in-publish || npm run prepublishOnly"
|
23
25
|
},
|
24
26
|
"repository": {
|
25
27
|
"type": "git",
|
@@ -39,25 +41,28 @@
|
|
39
41
|
"shim"
|
40
42
|
],
|
41
43
|
"dependencies": {
|
42
|
-
"call-bind": "^1.0.
|
43
|
-
"define-properties": "^1.1.
|
44
|
-
"has-symbols": "^1.0.
|
44
|
+
"call-bind": "^1.0.2",
|
45
|
+
"define-properties": "^1.1.4",
|
46
|
+
"has-symbols": "^1.0.3",
|
45
47
|
"object-keys": "^1.1.1"
|
46
48
|
},
|
47
49
|
"devDependencies": {
|
48
|
-
"@es-shims/api": "^2.
|
49
|
-
"@ljharb/eslint-config": "^
|
50
|
-
"aud": "^
|
50
|
+
"@es-shims/api": "^2.2.3",
|
51
|
+
"@ljharb/eslint-config": "^21.0.0",
|
52
|
+
"aud": "^2.0.0",
|
51
53
|
"browserify": "^16.5.2",
|
52
|
-
"eslint": "
|
54
|
+
"eslint": "=8.8.0",
|
53
55
|
"for-each": "^0.3.3",
|
54
|
-
"functions-have-names": "^1.2.
|
56
|
+
"functions-have-names": "^1.2.3",
|
55
57
|
"has": "^1.0.3",
|
58
|
+
"has-strict-mode": "^1.0.1",
|
56
59
|
"is": "^3.3.0",
|
60
|
+
"mock-property": "^1.0.0",
|
61
|
+
"npmignore": "^0.3.0",
|
57
62
|
"nyc": "^10.3.2",
|
58
|
-
"safe-publish-latest": "^
|
59
|
-
"ses": "^0.
|
60
|
-
"tape": "^5.
|
63
|
+
"safe-publish-latest": "^2.0.0",
|
64
|
+
"ses": "^0.11.1",
|
65
|
+
"tape": "^5.5.3"
|
61
66
|
},
|
62
67
|
"testling": {
|
63
68
|
"files": "test/index.js",
|
@@ -79,5 +84,12 @@
|
|
79
84
|
},
|
80
85
|
"engines": {
|
81
86
|
"node": ">= 0.4"
|
87
|
+
},
|
88
|
+
"publishConfig": {
|
89
|
+
"ignore": [
|
90
|
+
".github/workflows",
|
91
|
+
"bower.json",
|
92
|
+
"browserShim.js"
|
93
|
+
]
|
82
94
|
}
|
83
95
|
}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
'use strict';
|
2
|
+
|
3
|
+
var implementation = require('../implementation');
|
4
|
+
var callBind = require('call-bind');
|
5
|
+
var test = require('tape');
|
6
|
+
var hasStrictMode = require('has-strict-mode')();
|
7
|
+
var runTests = require('./tests');
|
8
|
+
|
9
|
+
test('as a function', function (t) {
|
10
|
+
t.test('bad first arg/receiver', { skip: !hasStrictMode }, function (st) {
|
11
|
+
st['throws'](function () { implementation(undefined); }, TypeError, 'undefined is not an object');
|
12
|
+
st['throws'](function () { implementation(null); }, TypeError, 'null is not an object');
|
13
|
+
st.end();
|
14
|
+
});
|
15
|
+
|
16
|
+
runTests(callBind(implementation, Object), t);
|
17
|
+
|
18
|
+
t.end();
|
19
|
+
});
|
@@ -3,6 +3,7 @@
|
|
3
3
|
var hasSymbols = require('has-symbols/shams')();
|
4
4
|
var forEach = require('for-each');
|
5
5
|
var has = require('has');
|
6
|
+
var mockProperty = require('mock-property');
|
6
7
|
|
7
8
|
module.exports = function (assign, t) {
|
8
9
|
t.test('error cases', function (st) {
|
@@ -160,11 +161,7 @@ module.exports = function (assign, t) {
|
|
160
161
|
});
|
161
162
|
|
162
163
|
t.test('does not fail when symbols are not present', { skip: !Object.isFrozen || Object.isFrozen(Object) }, function (st) {
|
163
|
-
|
164
|
-
if (hasSymbols) {
|
165
|
-
getSyms = Object.getOwnPropertySymbols;
|
166
|
-
delete Object.getOwnPropertySymbols;
|
167
|
-
}
|
164
|
+
st.teardown(mockProperty(Object, 'getOwnPropertySymbols', { 'delete': true }));
|
168
165
|
|
169
166
|
var visited = [];
|
170
167
|
var obj = {};
|
@@ -184,8 +181,6 @@ module.exports = function (assign, t) {
|
|
184
181
|
|
185
182
|
if (hasSymbols) {
|
186
183
|
st.equal(target[symbol], Infinity);
|
187
|
-
|
188
|
-
Object.getOwnPropertySymbols = getSyms;
|
189
184
|
}
|
190
185
|
st.end();
|
191
186
|
});
|