()
| 59 | testProduceMultiple(); |
| 60 | |
| 61 | function testRejectInvalid() { |
| 62 | const source = getSource('invalid'); |
| 63 | |
| 64 | const data = produce(source); |
| 65 | |
| 66 | // It should reject invalid code cache |
| 67 | const script = new vm.Script(getSource('invalid_1'), { |
| 68 | cachedData: data |
| 69 | }); |
| 70 | assert(script.cachedDataRejected); |
| 71 | assert.strictEqual(script.runInThisContext()(), 'invalid_1'); |
| 72 | } |
| 73 | testRejectInvalid(); |
| 74 | |
| 75 | function testRejectSlice() { |
no test coverage detected
searching dependent graphs…