Skip to content

Strict mode error when using on-load #411

@callil

Description

@callil

Hi folks, I know this issue has been discussed before but I'm still getting issues when attempting to use the on-load library with create-choo-app that's using the latest bankai build.

onload(div, (el) => { console.log('Loaded') }, (el) => { console.log('Unloaded')

results in:

Uncaught TypeError: 'caller', 'callee', and 'arguments' properties may not be accessed on strict mode functions or the arguments objects for calls to them

I can solve this by switching to budo or (according to another test someone did) by disabling babelify. However, it seems like something that should work out of the box.

full gist here: https://gist.github.com/callil/52db52b6786d053a84ad8190a46058d8

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions