| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 2014eba commit 379260e
9 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,8 +1,6 @@ | |||
| 1 | 1 | 'use strict'; | |
| 2 | - // Flags: --expose-internals | ||
| 3 | 2 | ||
| 4 | 3 | const common = require('../../common'); | |
| 5 | - const { internalBinding } = require('internal/test/binding'); | ||
| 6 | 4 | const skipMessage = 'intensive toString tests due to memory confinements'; | |
| 7 | 5 | if (!common.enoughTestMem) | |
| 8 | 6 | common.skip(skipMessage); | |
@@ -12,7 +10,7 @@ const assert = require('assert'); | |||
| 12 | 10 | ||
| 13 | 11 | // v8 fails silently if string length > v8::String::kMaxLength | |
| 14 | 12 | // v8::String::kMaxLength defined in v8.h | |
| 15 | - const kStringMaxLength = internalBinding('buffer').kStringMaxLength; | ||
| 13 | + const kStringMaxLength = require('buffer').constants.MAX_STRING_LENGTH; | ||
| 16 | 14 | ||
| 17 | 15 | let buf; | |
| 18 | 16 | try { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,8 +1,6 @@ | |||
| 1 | 1 | 'use strict'; | |
| 2 | - // Flags: --expose-internals | ||
| 3 | 2 | ||
| 4 | 3 | const common = require('../../common'); | |
| 5 | - const { internalBinding } = require('internal/test/binding'); | ||
| 6 | 4 | const skipMessage = 'intensive toString tests due to memory confinements'; | |
| 7 | 5 | if (!common.enoughTestMem) | |
| 8 | 6 | common.skip(skipMessage); | |
@@ -11,7 +9,7 @@ const binding = require(`./build/${common.buildType}/binding`); | |||
| 11 | 9 | ||
| 12 | 10 | // v8 fails silently if string length > v8::String::kMaxLength | |
| 13 | 11 | // v8::String::kMaxLength defined in v8.h | |
| 14 | - const kStringMaxLength = internalBinding('buffer').kStringMaxLength; | ||
| 12 | + const kStringMaxLength = require('buffer').constants.MAX_STRING_LENGTH; | ||
| 15 | 13 | ||
| 16 | 14 | let buf; | |
| 17 | 15 | try { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,8 +1,6 @@ | |||
| 1 | 1 | 'use strict'; | |
| 2 | - // Flags: --expose-internals | ||
| 3 | 2 | ||
| 4 | 3 | const common = require('../../common'); | |
| 5 | - const { internalBinding } = require('internal/test/binding'); | ||
| 6 | 4 | const skipMessage = 'intensive toString tests due to memory confinements'; | |
| 7 | 5 | if (!common.enoughTestMem) | |
| 8 | 6 | common.skip(skipMessage); | |
@@ -11,7 +9,7 @@ const binding = require(`./build/${common.buildType}/binding`); | |||
| 11 | 9 | ||
| 12 | 10 | // v8 fails silently if string length > v8::String::kMaxLength | |
| 13 | 11 | // v8::String::kMaxLength defined in v8.h | |
| 14 | - const kStringMaxLength = internalBinding('buffer').kStringMaxLength; | ||
| 12 | + const kStringMaxLength = require('buffer').constants.MAX_STRING_LENGTH; | ||
| 15 | 13 | ||
| 16 | 14 | let buf; | |
| 17 | 15 | try { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,8 +1,7 @@ | |||
| 1 | - // Flags: --expose-gc --expose-internals | ||
| 1 | + // Flags: --expose-gc | ||
| 2 | 2 | 'use strict'; | |
| 3 | 3 | ||
| 4 | 4 | const common = require('../../common'); | |
| 5 | - const { internalBinding } = require('internal/test/binding'); | ||
| 6 | 5 | const skipMessage = 'intensive toString tests due to memory confinements'; | |
| 7 | 6 | if (!common.enoughTestMem) | |
| 8 | 7 | common.skip(skipMessage); | |
@@ -12,7 +11,7 @@ const assert = require('assert'); | |||
| 12 | 11 | ||
| 13 | 12 | // v8 fails silently if string length > v8::String::kMaxLength | |
| 14 | 13 | // v8::String::kMaxLength defined in v8.h | |
| 15 | - const kStringMaxLength = internalBinding('buffer').kStringMaxLength; | ||
| 14 | + const kStringMaxLength = require('buffer').constants.MAX_STRING_LENGTH; | ||
| 16 | 15 | ||
| 17 | 16 | let buf; | |
| 18 | 17 | try { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,8 +1,6 @@ | |||
| 1 | 1 | 'use strict'; | |
| 2 | - // Flags: --expose-internals | ||
| 3 | 2 | ||
| 4 | 3 | const common = require('../../common'); | |
| 5 | - const { internalBinding } = require('internal/test/binding'); | ||
| 6 | 4 | const skipMessage = 'intensive toString tests due to memory confinements'; | |
| 7 | 5 | if (!common.enoughTestMem) | |
| 8 | 6 | common.skip(skipMessage); | |
@@ -11,7 +9,7 @@ const binding = require(`./build/${common.buildType}/binding`); | |||
| 11 | 9 | ||
| 12 | 10 | // v8 fails silently if string length > v8::String::kMaxLength | |
| 13 | 11 | // v8::String::kMaxLength defined in v8.h | |
| 14 | - const kStringMaxLength = internalBinding('buffer').kStringMaxLength; | ||
| 12 | + const kStringMaxLength = require('buffer').constants.MAX_STRING_LENGTH; | ||
| 15 | 13 | ||
| 16 | 14 | let buf; | |
| 17 | 15 | try { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,8 +1,6 @@ | |||
| 1 | 1 | 'use strict'; | |
| 2 | - // Flags: --expose-internals | ||
| 3 | 2 | ||
| 4 | 3 | const common = require('../../common'); | |
| 5 | - const { internalBinding } = require('internal/test/binding'); | ||
| 6 | 4 | const skipMessage = 'intensive toString tests due to memory confinements'; | |
| 7 | 5 | if (!common.enoughTestMem) | |
| 8 | 6 | common.skip(skipMessage); | |
@@ -12,7 +10,7 @@ const assert = require('assert'); | |||
| 12 | 10 | ||
| 13 | 11 | // v8 fails silently if string length > v8::String::kMaxLength | |
| 14 | 12 | // v8::String::kMaxLength defined in v8.h | |
| 15 | - const kStringMaxLength = internalBinding('buffer').kStringMaxLength; | ||
| 13 | + const kStringMaxLength = require('buffer').constants.MAX_STRING_LENGTH; | ||
| 16 | 14 | ||
| 17 | 15 | let buf; | |
| 18 | 16 | try { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,8 +1,6 @@ | |||
| 1 | 1 | 'use strict'; | |
| 2 | - // Flags: --expose-internals | ||
| 3 | 2 | ||
| 4 | 3 | const common = require('../../common'); | |
| 5 | - const { internalBinding } = require('internal/test/binding'); | ||
| 6 | 4 | const skipMessage = 'intensive toString tests due to memory confinements'; | |
| 7 | 5 | if (!common.enoughTestMem) | |
| 8 | 6 | common.skip(skipMessage); | |
@@ -12,7 +10,7 @@ const assert = require('assert'); | |||
| 12 | 10 | ||
| 13 | 11 | // v8 fails silently if string length > v8::String::kMaxLength | |
| 14 | 12 | // v8::String::kMaxLength defined in v8.h | |
| 15 | - const kStringMaxLength = internalBinding('buffer').kStringMaxLength; | ||
| 13 | + const kStringMaxLength = require('buffer').constants.MAX_STRING_LENGTH; | ||
| 16 | 14 | ||
| 17 | 15 | let buf; | |
| 18 | 16 | try { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,8 +1,6 @@ | |||
| 1 | 1 | 'use strict'; | |
| 2 | - // Flags: --expose-internals | ||
| 3 | 2 | ||
| 4 | 3 | const common = require('../../common'); | |
| 5 | - const { internalBinding } = require('internal/test/binding'); | ||
| 6 | 4 | const skipMessage = 'intensive toString tests due to memory confinements'; | |
| 7 | 5 | if (!common.enoughTestMem) | |
| 8 | 6 | common.skip(skipMessage); | |
@@ -11,7 +9,7 @@ const binding = require(`./build/${common.buildType}/binding`); | |||
| 11 | 9 | ||
| 12 | 10 | // v8 fails silently if string length > v8::String::kMaxLength | |
| 13 | 11 | // v8::String::kMaxLength defined in v8.h | |
| 14 | - const kStringMaxLength = internalBinding('buffer').kStringMaxLength; | ||
| 12 | + const kStringMaxLength = require('buffer').constants.MAX_STRING_LENGTH; | ||
| 15 | 13 | ||
| 16 | 14 | let buf; | |
| 17 | 15 | try { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,8 +1,6 @@ | |||
| 1 | 1 | 'use strict'; | |
| 2 | - // Flags: --expose-internals | ||
| 3 | 2 | ||
| 4 | 3 | const common = require('../common'); | |
| 5 | - const { internalBinding } = require('internal/test/binding'); | ||
| 6 | 4 | ||
| 7 | 5 | if (!common.enoughTestMem) | |
| 8 | 6 | common.skip('intensive toString tests due to memory confinements'); | |
@@ -11,7 +9,7 @@ const assert = require('assert'); | |||
| 11 | 9 | const fs = require('fs'); | |
| 12 | 10 | const path = require('path'); | |
| 13 | 11 | const cp = require('child_process'); | |
| 14 | - const kStringMaxLength = internalBinding('buffer').kStringMaxLength; | ||
| 12 | + const kStringMaxLength = require('buffer').constants.MAX_STRING_LENGTH; | ||
| 15 | 13 | if (common.isAIX && (Number(cp.execSync('ulimit -f')) * 512) < kStringMaxLength) | |
| 16 | 14 | common.skip('intensive toString tests due to file size confinements'); | |
| 17 | 15 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments