The GitHub repository (github.com/Alpaq92/Riposte) is gone with the suspended account. These are the files npm installed for ReaderJS from commit 307ef7dfd9c5e8c0c07a840874e013cf94a85ada, so this is that commit's packaged content, without its history. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
12 lines
338 B
JavaScript
12 lines
338 B
JavaScript
// engine/operators/string.js — string construction (string-specific ops).
|
|
import { PS, PSString, T } from '../object.js';
|
|
import { PSError } from '../errors.js';
|
|
|
|
export default {
|
|
string(vm) {
|
|
const n = vm.popInt();
|
|
if (n < 0) throw new PSError('rangecheck');
|
|
vm.push(PS.string(new PSString(new Uint8Array(n))));
|
|
},
|
|
};
|