Commit 63b16726 authored by Luke Sandberg's avatar Luke Sandberg

hack

parent 2921fb33
......@@ -128,8 +128,12 @@ function esm(exports: Exports, bindings: EsmBindings) {
const tagOrFunction = bindings[i++]
if (typeof tagOrFunction === 'number') {
if (tagOrFunction === BindingTag_Value) {
const value = bindings[i++]
if (typeof value === 'function' && value.name === '') {
Object.defineProperty(value, 'name', { value: propName })
}
defineProp(exports, propName, {
value: bindings[i++],
value,
enumerable: true,
writable: false,
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment