The x in @NApiVersion 2.x means 2.0
What a 2.x script runs on today, the preference that moves it, and why NetSuite lists it as 2.0
I deployed a Suitelet annotated @NApiVersion 2.x to a NetSuite 2026.2 test account and asked it what it could do. It had no Symbol and no Array.prototype.findLast. It did have the Packages global, which in my account only the 2.0 engine exposes. Reassigning a const was silently ignored. It was a 2.0 script.
The x reads like a wildcard: any 2-series version, so presumably the newest. It isn't. A 2.x script runs on the same engine as a 2.0 script, and Oracle's timeline groups them together: in 2028.1, "SuiteScript 2.0/2.x scripts run as SuiteScript 2.1 by default." If you counted your 2.x scripts as already migrated, they aren't.
What 2.x runs on today
I couldn't find an Oracle page that says what 2.x resolves to, so I measured it. I deployed a Suitelet and a RESTlet annotated 2.x, the same Suitelet annotated 2.X, and kept the 2.0 probes from my 2.1 post as a control. The code was the same in every file; only the annotation differed.
With both account preferences at 2.0, every 2.x result matched the 2.0 control. Dates came back in the long format. parseInt("08") returned NaN. JSON.stringify(new Error('msg')) kept its message. The RESTlet double-encoded a stringified response to 12 characters. Capital 2.X behaved the same way.
NetSuite's own screens agree. The script record and the Scripts list both show API Version 2.0 for a 2.x script. SDF's validator flagged each 2.x file with the warning it gives 2.0 files: these scripts "will stop working in NetSuite 2028.2."
Two preferences, and they don't overlap
Oracle gives you two account preferences to try the 2.1 runtime before changing any code. In my account, one is a checkbox, "Execute SuiteScript 2.0 Server Scripts as 2.1", and the other is a dropdown, "Execute SuiteScript 2.x Server Scripts as".
They're independent. With only the dropdown at 2.1, the 2.x scripts switched to the 2.1 engine and the 2.0 control stayed on 2.0. With only the checkbox on, it went the other way: the 2.0 control switched, and every 2.x script stayed on 2.0, the RESTlet included.
The switch isn't cosmetic. With the dropdown at 2.1, the unchanged 2.x RESTlet's response went from 12 characters to 8, and a bare string went from 8 to 6. Both still returned HTTP 200. A setValue of 616.00 saved as 616 instead of 616.0.
So turn on only the checkbox in a sandbox, and every 2.x script keeps running on 2.0, without an error to tell you it wasn't tested. Oracle's troubleshooting page doesn't help here. Its steps for restoring 2.0 processing name only the 2.0 preference.
Where the errors point
Two failures in the test don't point at the annotation.
2.1 syntax in a 2.x file. Oracle says that with the preferences at 2.1, 2.x scripts "still use SuiteScript 2.0 syntax rules when uploaded." That held. A file using optional chaining, or only an arrow function, failed to deploy with the dropdown at 2.0 and at 2.1. But the error wasn't a syntax error. SDF reported "SuiteScript 2.x entry point scripts must implement one script type function," with no line number. The same file annotated 2.0 gave the same message, with "2.0" in it. The fix is the one Oracle gives: "explicitly update the script annotation from @NApiVersion 2.x to @NApiVersion 2.1."
Old syntax under the new preference. Three 2.x Suitelets using for each...in, a conditional catch and a variable named extends worked with the dropdown at 2.0. At 2.1, each one failed at execution with a SyntaxError. The for-each script's record reported Execute As Version 2.1 at the time. Oracle says "A script that NetSuite does not recognize as compatible with SuiteScript 2.1 continues to run as SuiteScript 2.0." For these three, it didn't. That's the same result I got for 2.0 scripts in October. Setting the dropdown back to 2.0 restored all three.
What I'd do
Inventory 2.x separately from 2.0. Oracle's guide to finding scripts that aren't on 2.1 uses the Scripts list's API Version filter, and the filter offers 1.0, 2.0 and 2.1. A 2.x script shows up as 2.0. Nothing in the list or on the script record tells you which of your "2.0" scripts are really 2.x, and the two preferences treat them separately. Search the script files for the annotation instead.
Test the preferences one at a time, in a sandbox. Set the 2.x dropdown to 2.1, exercise each 2.x script, and check that its script record shows Execute As Version 2.1. Then do the same with the 2.0 checkbox for the 2.0 scripts. A clean log under only one of them tells you about half the account.
Then change each annotation to 2.1 explicitly. From 2028.1, a 2.x script runs as 2.1 by default whether anyone has tested it or not. In 2028.2, "All new and existing scripts must use SuiteScript 2.1."
Sources — Oracle NetSuite Help Center