Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package fx for openSUSE:Factory checked in at 2026-11-21 21:46:55 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/fx (Old) and /work/SRC/openSUSE:Factory/.fx.new.1340718 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "fx" Sat Nov 21 21:46:55 2026 rev:13 rq:1399542 version:40.0.2 Changes: -------- --- /work/SRC/openSUSE:Factory/fx/fx.changes 2026-10-26 10:01:02.848342985 +0100 +++ /work/SRC/openSUSE:Factory/.fx.new.1340718/fx.changes 2026-11-21 21:48:47.737167574 +0100 @@ -1,0 +2,17 @@ +Fri Nov 20 18:02:15 UTC 2026 - Martin Hauke <[email protected]> + +- Update to version 4.0.2 + Fixes + * A __proto__ key in JSON input is now kept as a regular field + instead of being dropped, and walk and sortKeys keep it too + (#449). + * groupBy no longer drops items whose group is __proto__ (#448). + Block comments ending in **/ now close correctly (#445). + * zip() with no inputs returns [] instead of looping forever + (#442). Thanks @nk-batman21! + * Errors in YAML, TOML or XML input are printed to stderr instead + of stdout (#441). + * Arrays with holes keep their indexes in output: [1, , 3] prints + as [1,null,3] (#443). + +------------------------------------------------------------------- Old: ---- fx-40.0.1.tar.gz New: ---- fx-40.0.2.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ fx.spec ++++++ --- /var/tmp/diff_new_pack.6iOuVA/_old 2026-11-21 21:48:48.649205804 +0100 +++ /var/tmp/diff_new_pack.6iOuVA/_new 2026-11-21 21:48:48.650205845 +0100 @@ -18,7 +18,7 @@ Name: fx -Version: 40.0.1 +Version: 40.0.2 Release: 0 Summary: Terminal JSON viewer License: MIT ++++++ fx-40.0.1.tar.gz -> fx-40.0.2.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fx-40.0.1/format_error_stream_test.go new/fx-40.0.2/format_error_stream_test.go --- old/fx-40.0.1/format_error_stream_test.go 1970-01-01 01:00:00.000000000 +0100 +++ new/fx-40.0.2/format_error_stream_test.go 2026-11-20 16:14:03.000000000 +0100 @@ -0,0 +1,33 @@ +package main + +import ( + "bytes" + "os" + "os/exec" + "strings" + "testing" + + "github.com/stretchr/testify/require" +) + +func TestFormatErrorsGoToStderr(t *testing.T) { + for _, tt := range []struct{ name, flag, input string }{ + {"yaml", "--yaml", "a: [\n"}, + {"toml", "--toml", "x = [\n"}, + {"xml", "--xml", "<root>\n"}, + } { + t.Run(tt.name, func(t *testing.T) { + cmd := exec.Command(os.Args[0], "-test.run=^$") + cmd.Env = append(os.Environ(), "FX_TEST_RUN_MAIN=1", "FX_TEST_ARGS="+tt.flag+" .") + cmd.Stdin = strings.NewReader(tt.input) + var stdout, stderr bytes.Buffer + cmd.Stdout, cmd.Stderr = &stdout, &stderr + err := cmd.Run() + var exitErr *exec.ExitError + require.ErrorAs(t, err, &exitErr) + require.Equal(t, 1, exitErr.ExitCode()) + require.Empty(t, stdout.String()) + require.NotEmpty(t, stderr.String()) + }) + } +} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fx-40.0.1/internal/engine/limits_test.go new/fx-40.0.2/internal/engine/limits_test.go --- old/fx-40.0.1/internal/engine/limits_test.go 2026-10-22 15:49:22.000000000 +0200 +++ new/fx-40.0.2/internal/engine/limits_test.go 2026-11-20 16:14:03.000000000 +0100 @@ -101,6 +101,14 @@ require.Len(t, outs, 1) } +func TestZipEmptyInput(t *testing.T) { + code, outs, errs, _ := run(t, `[]`, `x => zip(...x)`, true, time.Second) + assert.Equal(t, 0, code) + assert.Empty(t, errs) + require.Len(t, outs, 1) + assert.Equal(t, "[]", outs[0].String()) +} + func TestStringify_DeepOutputIsLinear(t *testing.T) { code, outs, errs, took := run(t, `1`, `x => { let a = []; for (let i = 0; i < 9000; i++) a = [a]; return a }`, false, 0) assert.Equal(t, 0, code) @@ -125,3 +133,27 @@ assert.Equal(t, `{"a":[1,{"b":null}],"c":{},"d":[],"e":"s"}`, stringifyCompact(value, vm, nil)) assert.Equal(t, "{\n \"a\": [\n 1,\n {\n \"b\": null\n }\n ],\n \"c\": {},\n \"d\": [],\n \"e\": \"s\"\n}", Stringify(value, vm, 0)) } + +func TestStringify_ArrayIndexes(t *testing.T) { + for _, tc := range []struct { + name, expression string + }{ + {"holes", `[1, , 3, ,]`}, + {"only holes", `new Array(3)`}, + {"extra property", `Object.assign([1, 2], {note: "metadata"})`}, + {"hidden index", `Object.defineProperty([1, 2], "0", {enumerable: false})`}, + {"deleted element", `(() => { const a = [1, 2, 3]; delete a[1]; return a })()`}, + } { + t.Run(tc.name, func(t *testing.T) { + vm := goja.New() + value, err := vm.RunString("var value = " + tc.expression + "; value") + require.NoError(t, err) + compact, err := vm.RunString("JSON.stringify(value)") + require.NoError(t, err) + indented, err := vm.RunString("JSON.stringify(value, null, 2)") + require.NoError(t, err) + assert.Equal(t, compact.String(), stringifyCompact(value, vm, nil)) + assert.Equal(t, indented.String(), Stringify(value, vm, 0)) + }) + } +} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fx-40.0.1/internal/engine/maml.go new/fx-40.0.2/internal/engine/maml.go --- old/fx-40.0.1/internal/engine/maml.go 2026-10-22 15:49:22.000000000 +0200 +++ new/fx-40.0.2/internal/engine/maml.go 2026-11-20 16:14:03.000000000 +0100 @@ -32,7 +32,8 @@ case v.IsObject(): obj := vm.NewObject() for _, kv := range v.AsObject().Entries() { - _ = obj.Set(kv.Key, mamlToJS(vm, kv.Value)) + // Define, not Set: Set would call the __proto__ setter. + _ = obj.DefineDataProperty(kv.Key, mamlToJS(vm, kv.Value), goja.FLAG_TRUE, goja.FLAG_TRUE, goja.FLAG_TRUE) } return obj case v.IsArray(): diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fx-40.0.1/internal/engine/stdlib.js new/fx-40.0.2/internal/engine/stdlib.js --- old/fx-40.0.1/internal/engine/stdlib.js 2026-10-22 15:49:22.000000000 +0200 +++ new/fx-40.0.2/internal/engine/stdlib.js 2026-11-20 16:14:03.000000000 +0100 @@ -62,6 +62,16 @@ } } +// __setOwn__ sets obj[key] as an own property, also for key "__proto__", +// which assignment would take as a prototype change. +function __setOwn__(obj, key, value) { + if (key === '__proto__') { + Object.defineProperty(obj, key, {value, writable: true, enumerable: true, configurable: true}) + } else { + obj[key] = value + } +} + function walk(fn) { return function recurse(value, key = null) { if (Array.isArray(value)) { @@ -70,7 +80,7 @@ } else if (value !== null && typeof value === 'object') { const result = {} for (const [k, v] of Object.entries(value)) { - result[k] = recurse(v, k) + __setOwn__(result, k, recurse(v, k)) } return fn(result, key) } else { @@ -97,7 +107,7 @@ if (typeof x === 'object' && x !== null) { const sorted = {} for (const key of Object.keys(x).sort()) { - sorted[key] = sortKeys(x[key]) + __setOwn__(sorted, key, sortKeys(x[key])) } return sorted } @@ -109,7 +119,14 @@ const grouped = {} for (const item of x) { const key = typeof keyFn === 'function' ? keyFn(item) : item[keyFn] - if (!Object.prototype.hasOwnProperty.call(grouped, key)) grouped[key] = [] + if (!Object.prototype.hasOwnProperty.call(grouped, key)) { + Object.defineProperty(grouped, key, { + value: [], + writable: true, + enumerable: true, + configurable: true, + }) + } grouped[key].push(item) } return grouped @@ -128,6 +145,7 @@ } function zip(...x) { + if (x.length === 0) return [] const length = Math.min(...x.map(a => a.length)) const res = [] for (let i = 0; i < length; i++) { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fx-40.0.1/internal/engine/stdlib_test.go new/fx-40.0.2/internal/engine/stdlib_test.go --- old/fx-40.0.1/internal/engine/stdlib_test.go 2026-10-22 15:49:22.000000000 +0200 +++ new/fx-40.0.2/internal/engine/stdlib_test.go 2026-11-20 16:14:03.000000000 +0100 @@ -245,6 +245,10 @@ {"walk primitive", "walk(x => x * 2)(5)", int64(10)}, {"walk with key", "walk((v, k) => k === 'double' ? v * 2 : v)({double: 5, keep: 10})", map[string]interface{}{"double": int64(10), "keep": int64(10)}}, + {"walk keeps own __proto__", "JSON.stringify(walk(x => x)(JSON.parse('{\"__proto__\":{\"id\":1},\"ok\":2}')))", + `{"__proto__":{"id":1},"ok":2}`}, + {"walk keeps prototype", "Object.getPrototypeOf(walk(x => x)(JSON.parse('{\"__proto__\":null}'))) === Object.prototype", + true}, } for _, tc := range tests { @@ -322,6 +326,20 @@ }, }, { + name: "own __proto__ kept", + code: `JSON.stringify(sortKeys(JSON.parse('{"ok":2,"__proto__":{"b":1,"a":2}}')))`, + check: func(t *testing.T, result goja.Value) { + assert.Equal(t, `{"__proto__":{"a":2,"b":1},"ok":2}`, result.Export()) + }, + }, + { + name: "prototype unchanged by __proto__ key", + code: `Object.getPrototypeOf(sortKeys(JSON.parse('{"__proto__":null}'))) === Object.prototype`, + check: func(t *testing.T, result goja.Value) { + assert.Equal(t, true, result.Export()) + }, + }, + { name: "primitives unchanged", code: "sortKeys(42)", check: func(t *testing.T, result goja.Value) { @@ -828,6 +846,12 @@ assert.Equal(t, "zebra,alpha", result.String()) }) + t.Run("MAML.parse keeps own __proto__", func(t *testing.T) { + result, err := vm.RunString(`Object.keys(MAML.parse('{\n __proto__: {id: 1}\n ok: 2\n}')).join()`) + require.NoError(t, err) + assert.Equal(t, "__proto__,ok", result.String()) + }) + t.Run("MAML.parse values", func(t *testing.T) { result, err := vm.RunString(`MAML.parse('{a: [1, 2.5, "x", true, null], b: """\nraw"""}')`) require.NoError(t, err) @@ -1201,6 +1225,21 @@ assert.Len(t, exported["toString"], 1) assert.Len(t, exported["normal"], 1) }) + + for _, keyFn := range []string{`x => x.key`, `"key"`} { + t.Run("groupBy with __proto__ key using "+keyFn, func(t *testing.T) { + result, err := vm.RunString(`(() => { + const grouped = groupBy(` + keyFn + `)([ + {key: "__proto__", id: 1}, + {key: "normal", id: 2}, + {key: "__proto__", id: 3}, + ]) + return JSON.stringify([grouped, Object.getPrototypeOf(grouped) === Object.prototype]) + })()`) + require.NoError(t, err) + assert.JSONEq(t, `[{"__proto__":[{"key":"__proto__","id":1},{"key":"__proto__","id":3}],"normal":[{"key":"normal","id":2}]},true]`, result.String()) + }) + } } // TestChunkEdgeCases tests chunk with edge case sizes. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fx-40.0.1/internal/engine/stringify.go new/fx-40.0.2/internal/engine/stringify.go --- old/fx-40.0.1/internal/engine/stringify.go 2026-10-22 15:49:22.000000000 +0200 +++ new/fx-40.0.2/internal/engine/stringify.go 2026-11-20 16:14:03.000000000 +0100 @@ -4,6 +4,7 @@ "fmt" "math/big" "reflect" + "strconv" "strings" "time" @@ -141,19 +142,23 @@ case reflect.Slice: arr := value.ToObject(vm) - keys := arr.Keys() - if len(keys) == 0 { + length := arr.Get("length").ToInteger() + if length == 0 { s.out.WriteString("[]") return } s.enter(arr) s.out.WriteByte('[') - for i, key := range keys { + for i := int64(0); i < length; i++ { if i > 0 { s.out.WriteByte(',') } s.newline(depth + 1) - s.write(arr.Get(key), depth+1) + item := arr.Get(strconv.FormatInt(i, 10)) + if item == nil { + item = goja.Undefined() + } + s.write(item, depth+1) } s.newline(depth) s.out.WriteByte(']') diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fx-40.0.1/internal/jsonx/json.go new/fx-40.0.2/internal/jsonx/json.go --- old/fx-40.0.1/internal/jsonx/json.go 2026-10-22 15:49:22.000000000 +0200 +++ new/fx-40.0.2/internal/jsonx/json.go 2026-11-20 16:14:03.000000000 +0100 @@ -737,7 +737,7 @@ case '*': for { p.next() - if p.char == '*' { + for p.char == '*' { p.next() if p.char == '/' { p.next() diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fx-40.0.1/internal/jsonx/jsonx_test.go new/fx-40.0.2/internal/jsonx/jsonx_test.go --- old/fx-40.0.1/internal/jsonx/jsonx_test.go 2026-10-22 15:49:22.000000000 +0200 +++ new/fx-40.0.2/internal/jsonx/jsonx_test.go 2026-11-20 16:14:03.000000000 +0100 @@ -29,6 +29,9 @@ {`// comment "test"`, jsonx.String}, {`/* comment */"test"`, jsonx.String}, + {`/** comment **/"test"`, jsonx.String}, + {`/***/"test"`, jsonx.String}, + {`{"a":1 /* comment **/}`, jsonx.Object}, {`{"a":1,}`, jsonx.Object}, {`[1,2,]`, jsonx.Array}, {`NaN`, jsonx.NaN}, @@ -68,6 +71,8 @@ {`1e`}, {`[1, 2`}, {`/* test`}, + {`/*/ "test"`}, + {`/* test *`}, {`[,]`}, {`{,}`}, {`[1,,]`}, diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fx-40.0.1/internal/jsonx/to_value.go new/fx-40.0.2/internal/jsonx/to_value.go --- old/fx-40.0.1/internal/jsonx/to_value.go 2026-10-22 15:49:22.000000000 +0200 +++ new/fx-40.0.2/internal/jsonx/to_value.go 2026-11-20 16:14:03.000000000 +0100 @@ -127,7 +127,8 @@ verr.path = append(verr.path, keyPath(key)) return nil, verr } - if err := obj.Set(key, value); err != nil { + // Define, not Set: Set would call the __proto__ setter. + if err := obj.DefineDataProperty(key, value, goja.FLAG_TRUE, goja.FLAG_TRUE, goja.FLAG_TRUE); err != nil { return nil, &ValueError{kind: "key", token: it.Key} } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fx-40.0.1/internal/jsonx/to_value_test.go new/fx-40.0.2/internal/jsonx/to_value_test.go --- old/fx-40.0.1/internal/jsonx/to_value_test.go 2026-10-22 15:49:22.000000000 +0200 +++ new/fx-40.0.2/internal/jsonx/to_value_test.go 2026-11-20 16:14:03.000000000 +0100 @@ -36,3 +36,29 @@ require.NoError(t, json.Unmarshal(got, &have)) require.Equal(t, want, have) } + +// TestToValue_Proto checks that a "__proto__" key is an own property, not +// the object's prototype. +func TestToValue_Proto(t *testing.T) { + input := `{"__proto__": {"id": 1}, "ok": 2, "n": {"__proto__": null}, "d": {"__proto__": 1, "__proto__": 2}}` + n, err := Parse([]byte(input)) + require.NoError(t, err) + + vm := goja.New() + value, err := n.ToValue(vm) + require.NoError(t, err) + require.NoError(t, vm.Set("x", value)) + + result, err := vm.RunString(`JSON.stringify([ + Object.keys(x), + Object.getPrototypeOf(x) === Object.prototype, + Object.getPrototypeOf(x.n) === Object.prototype, + x.id, + x.d, + Object.getOwnPropertyDescriptor(x, "__proto__"), + ])`) + require.NoError(t, err) + require.Equal(t, + `[["__proto__","ok","n","d"],true,true,null,{"__proto__":2},{"value":{"id":1},"writable":true,"enumerable":true,"configurable":true}]`, + result.String()) +} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fx-40.0.1/main.go new/fx-40.0.2/main.go --- old/fx-40.0.1/main.go 2026-10-22 15:49:22.000000000 +0200 +++ new/fx-40.0.2/main.go 2026-11-20 16:14:03.000000000 +0100 @@ -183,7 +183,7 @@ parser, err := newParser(src) if err != nil { - fmt.Print(err.Error()) + fmt.Fprint(os.Stderr, err.Error()) os.Exit(1) return } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fx-40.0.1/npm/index.js new/fx-40.0.2/npm/index.js --- old/fx-40.0.1/npm/index.js 2026-10-22 15:49:22.000000000 +0200 +++ new/fx-40.0.2/npm/index.js 2026-11-20 16:14:03.000000000 +0100 @@ -202,7 +202,7 @@ } else if (value !== null && typeof value === 'object') { const result = {} for (const [k, v] of Object.entries(value)) { - result[k] = recurse(v, k) + setOwn(result, k, recurse(v, k)) } return fn(result, key) } else { @@ -229,7 +229,7 @@ if (typeof x === 'object' && x !== null) { const sorted = {} for (const key of Object.keys(x).sort()) { - sorted[key] = sortKeys(x[key]) + setOwn(sorted, key, sortKeys(x[key])) } return sorted } @@ -241,7 +241,14 @@ const grouped = {} for (const item of x) { const key = typeof keyFn === 'function' ? keyFn(item) : item[keyFn] - if (!Object.prototype.hasOwnProperty.call(grouped, key)) grouped[key] = [] + if (!Object.prototype.hasOwnProperty.call(grouped, key)) { + Object.defineProperty(grouped, key, { + value: [], + writable: true, + enumerable: true, + configurable: true, + }) + } grouped[key].push(item) } return grouped @@ -260,6 +267,7 @@ } function zip(...x) { + if (x.length === 0) return [] const length = Math.min(...x.map(a => a.length)) const res = [] for (let i = 0; i < length; i++) { @@ -331,6 +339,16 @@ } } +// setOwn sets obj[key] as an own property, also for key "__proto__", +// which assignment would take as a prototype change. +function setOwn(obj, key, value) { + if (key === '__proto__') { + Object.defineProperty(obj, key, {value, writable: true, enumerable: true, configurable: true}) + } else { + obj[key] = value + } +} + async function read(fd = 0) { const fs = await import('node:fs') const {Buffer} = await import('node:buffer') @@ -556,7 +574,7 @@ next() const value = parseValue() expectValue(value) - obj[key] = value + setOwn(obj, key, value) skipWhitespace() if (lastChar === '}') { next() @@ -635,14 +653,16 @@ } skipWhitespace() } else if (lastChar === '*') { + next() while (!done) { - next() if (lastChar === '*') { next() if (lastChar === '/') { next() break } + } else { + next() } } skipWhitespace() diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fx-40.0.1/npm/package.json new/fx-40.0.2/npm/package.json --- old/fx-40.0.1/npm/package.json 2026-10-22 15:49:22.000000000 +0200 +++ new/fx-40.0.2/npm/package.json 2026-11-20 16:14:03.000000000 +0100 @@ -1,6 +1,6 @@ { "name": "fx", - "version": "40.0.1", + "version": "40.0.2", "bin": { "fx": "index.js" }, diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fx-40.0.1/npm/test.js new/fx-40.0.2/npm/test.js --- old/fx-40.0.1/npm/test.js 2026-10-22 15:49:22.000000000 +0200 +++ new/fx-40.0.2/npm/test.js 2026-11-20 16:14:03.000000000 +0100 @@ -27,6 +27,16 @@ } void async function main() { + await test('zip empty input', async t => { + const {spawnSync} = await import('node:child_process') + const {status, stdout, error} = spawnSync(process.execPath, ['index.js', 'x => zip(...x)'], { + input: '[]', encoding: 'utf8', timeout: 2000 + }) + t.ifError(error) + t.equal(status, 0) + t.equal(stdout, '[]\n') + }) + await test('properly formatted', async t => { const {stdout} = await run([{'greeting': 'hello world'}]) t.deepEqual(stdout, '[\n {\n "greeting": "hello world"\n }\n]\n') @@ -94,6 +104,13 @@ t.equal(stdout, '[\n 1\n]\n') }) + await test('parseJson - block comments ending in **/', async t => { + const {stdout} = await run('/** comment **/ [1 /***/]') + t.equal(stdout, '[\n 1\n]\n') + const {stdout: opening} = await run('/*/ [2] */ [1]') + t.equal(opening, '[\n 1\n]\n') + }) + await test('parseYaml', async t => { const {stdout} = await run('- foo\n- bar', '--yaml') t.equal(stdout, '[\n "foo",\n "bar"\n]\n') @@ -170,6 +187,22 @@ t.deepEqual(JSON.parse(stdout), [1, 2, 3]) }) + await test('transform - groupBy preserves __proto__ groups', async t => { + const input = [ + {key: '__proto__', id: 1}, + {key: 'normal', id: 2}, + {key: '__proto__', id: 3}, + ] + for (const keyFn of ['x => x.key', '"key"']) { + const {stdout, stderr, status} = await run(input, `'groupBy(${keyFn})'`) + t.equal(status, 0, stderr) + t.deepEqual(JSON.parse(stdout), { + ['__proto__']: [input[0], input[2]], + normal: [input[1]], + }) + } + }) + await test('transform - skip', async t => { const {stdout} = await run(42, `skip`) t.equal(stdout, '') @@ -213,6 +246,18 @@ t.equal(stdout, 'hello, world!\n') }) + await test('__proto__ key - kept by parser, walk and sortKeys', async t => { + const json = '{"ok":2,"__proto__":{"b":1,"a":2}}' + let r = await run(json, `'Object.keys(this)'`) + t.equal(r.stdout, '[\n "ok",\n "__proto__"\n]\n', r.stderr) + r = await run(json, `'x => JSON.stringify(walk(x => x)(x))'`) + t.equal(r.stdout, '{"ok":2,"__proto__":{"b":1,"a":2}}\n', r.stderr) + r = await run(json, `'x => JSON.stringify(sortKeys(x))'`) + t.equal(r.stdout, '{"__proto__":{"a":2,"b":1},"ok":2}\n', r.stderr) + r = await run(json, `'x => Object.getPrototypeOf(sortKeys(x)) === Object.prototype'`) + t.equal(r.stdout, 'true\n', r.stderr) + }) + await test('cli - first arg is file', async t => { const {stdout} = await runNoPipe(`package.json .name`) t.equal(stdout, 'fx\n') diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fx-40.0.1/snap/snapcraft.yaml new/fx-40.0.2/snap/snapcraft.yaml --- old/fx-40.0.1/snap/snapcraft.yaml 2026-10-22 15:49:22.000000000 +0200 +++ new/fx-40.0.2/snap/snapcraft.yaml 2026-11-20 16:14:03.000000000 +0100 @@ -18,7 +18,7 @@ Other install methods (Homebrew, GitHub release binaries, go install) have no such restriction: https://fx.wtf/install -version: 40.0.1 +version: 40.0.2 base: core24 grade: stable confinement: strict diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fx-40.0.1/version.go new/fx-40.0.2/version.go --- old/fx-40.0.1/version.go 2026-10-22 15:49:22.000000000 +0200 +++ new/fx-40.0.2/version.go 2026-11-20 16:14:03.000000000 +0100 @@ -1,3 +1,3 @@ package main -const version = "40.0.1" +const version = "40.0.2" ++++++ vendor.tar.gz ++++++
