Skip to content

Commit

Permalink
merge !118
Browse files Browse the repository at this point in the history
resolves #136 fix Error.call conflict when Opal is loaded
  • Loading branch information
mojavelinux committed May 17, 2020
2 parents a87c6b9 + 85299bb commit 8aee218
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions gulp.d/tasks/build-preview-pages.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
'use strict'

// NOTE remove patch after upgrading from asciidoctor.js to @asciidoctor/core
Error.call = (self, ...args) => {
const err = new Error(...args)
return Object.assign(self, { message: err.message, stack: err.stack })
}

const asciidoctor = require('asciidoctor.js')()
const fs = require('fs-extra')
const handlebars = require('handlebars')
Expand Down

0 comments on commit 8aee218

Please sign in to comment.