08-27-周三_17-09-29

This commit is contained in:
2025-08-27 17:10:05 +08:00
commit 86df397d8f
12735 changed files with 1145479 additions and 0 deletions

23
node_modules/weak/test/create.js generated vendored Normal file
View File

@@ -0,0 +1,23 @@
var assert = require('assert')
var weak = require('../')
describe('create()', function () {
afterEach(gc)
it('should throw on non-"object" values', function () {
[ 0
, 0.0
, true
, false
, null
, undefined
, 'foo'
].forEach(function (val) {
assert.throws(function () {
weak.create(val)
})
})
})
})