browserify / node-util

node.js util module as a module
MIT License
247 stars 88 forks source link

In IE 11, SCRIPT5007: Unable to get property 'get' of undefined or null reference #40

Closed macwac closed 4 years ago

macwac commented 5 years ago

i've got this error in types.js on:


  var TypedArrayProto_toStringTag =
      uncurryThis(
        Object.getOwnPropertyDescriptor(TypedArrayPrototype,
                                        Symbol.toStringTag).get);
ZhongQiangYe commented 5 years ago

I got the same error with u

goto-bus-stop commented 5 years ago

We have a fallback for this code that's based on Object.prototype.toString, which is used in environments where Symbol is not available. It looks like we should also check that TypedArrayPrototype[Symbol.toStringTag] is available, and if not, use the Object.prototype.toString fallback instead.

abhishekbhan commented 5 years ago

So whats the solution for this now?

amramamohanreddy commented 5 years ago

I'm also facing this issue, when I moved from Angular 4.3 to Angular 7. Did anyone solve this issue? Appreciate if he/she share the solution.

macwac commented 5 years ago

@amramamohanreddy @abhishekbhan

Angular 8 here In my case i must downgrade packgage assert to 1.5 version

pmcelreavy commented 4 years ago

I'm getting the same issue in only one of our projects. We are not using "assert" so downgrading it won't help.

Is there a solution for this?

ljharb commented 4 years ago

toStringTags aren't robust anyways; i'd prefer to see browserify use a robust approach like https://npmjs.com/which-typed-array / https://npmjs.com/is-typed-array :-)