()
| 73 | testRejectInvalid(); |
| 74 | |
| 75 | function testRejectSlice() { |
| 76 | const source = getSource('slice'); |
| 77 | |
| 78 | const data = produce(source).slice(4); |
| 79 | |
| 80 | const script = new vm.Script(source, { |
| 81 | cachedData: data |
| 82 | }); |
| 83 | assert(script.cachedDataRejected); |
| 84 | } |
| 85 | testRejectSlice(); |
| 86 | |
| 87 | // It should throw on non-Buffer cachedData |
no test coverage detected
searching dependent graphs…