Skip to content

doesn't work in strict mode #2

@jywarren

Description

@jywarren

We found an issue (publiclab/PublicLab.Editor#614) with the following line when trying to compile this in Babel:

this.Class = function(){};

It yields >> TypeError: Attempted to assign to readonly property. at for this line when running in PhantomJS within a Jasmine test. We're looking for a workaround, just filing this here for reference.

Looks like some refactors/ rewrites available here:

https://stackoverflow.com/questions/15050816/is-john-resigs-javascript-inheritance-snippet-deprecated

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions