diff --git a/tests/browser/polyfills.js b/tests/browser/polyfills.js index 12782558c..02a9a9172 100644 --- a/tests/browser/polyfills.js +++ b/tests/browser/polyfills.js @@ -1,7 +1,7 @@ var assert = require('assert'); var pdfmake = require('./../../build/pdfmake.js'); var pdfFonts = require('./../../build/vfs_fonts.js'); -pdfmake.vfs = pdfFonts.pdfMake.vfs; +pdfmake.addVirtualFileSystem(pdfFonts); describe('core-js polyfill', function () { it('Object.isExtensible bug', async function () {