yasl icon indicating copy to clipboard operation
yasl copied to clipboard

Calling `require` too late in file causes crash.

Open CoffeeTableEspresso opened this issue 1 year ago • 1 comments

The following example will crash:

const x = [ 'a']
const y = []

echo x

y->sort(fn(a, b) {

    return a->tostr('x') < b->tostr('x')
})

y->sort(fn(a, b) {
    y->push(a)
    return a < b
})

echo y

const re = require('tuple')

CoffeeTableEspresso avatar May 17 '23 04:05 CoffeeTableEspresso